Enum nsstring::nsCStringAdapter
[−]
[src]
pub enum nsCStringAdapter<'a> { Borrowed(nsCStr<'a>), Abstract(&'a nsACString), }
An adapter type to allow for passing both types which coerce to &[$char_type], and &$AString to a function, while still performing optimized operations when passed the $AString.
Variants
Borrowed(nsCStr<'a>)
Abstract(&'a nsACString)
Methods from Deref<Target = nsACString>
pub unsafe fn as_str_unchecked(&self) -> &str
[src]
Trait Implementations
impl<'a> Deref for nsCStringAdapter<'a>
[src]
type Target = nsACString
The resulting type after dereferencing.
fn deref(&self) -> &nsACString
[src]
Dereferences the value.