Struct bstr::NullBStr [] [src]

pub struct NullBStr;

Empty borrowed string as a null BSTR.

Null BSTR and zero length BSTR must be semantically equivalent however &BStr cannot be null, so this type fills the gap.

Methods from Deref<Target=BStr>

fn to_os_string(&self) -> OsString

Clones the string encoded as OsString.

Trait Implementations

impl PartialEq for NullBStr
[src]

fn eq(&self, __arg_0: &NullBStr) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for NullBStr
[src]

impl Debug for NullBStr
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for NullBStr
[src]

fn clone(&self) -> NullBStr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for NullBStr
[src]

impl AsRef<BStr> for NullBStr
[src]

fn as_ref(&self) -> &BStr

Performs the conversion.

impl Deref for NullBStr
[src]

type Target = BStr

The resulting type after dereferencing

fn deref(&self) -> &BStr

The method called to dereference a value

impl AsRawBStr for NullBStr
[src]

fn as_raw(&self) -> BSTR

Returns the raw BSTR for this type. Read more