Struct pdb::RawString
[−]
[src]
pub struct RawString<'b>(_);
RawString refers to a &[u8] that physically resides somewhere inside a PDB data structure. It may not be valid UTF-8.
Methods
impl<'b> RawString<'b>
[src]
fn as_bytes(&self) -> &'b [u8]
Return the raw bytes of this string
fn len(&self) -> usize
Return the length in bytes of this string
fn to_string(&self) -> Cow<'b, str>
Returns a UTF-8 String
, substituting in replacement characters as needed.
This uses String::from_utf8_lossy()
and thus avoids copying in all cases where the
original string was valid UTF-8.
Trait Implementations
impl<'b> Clone for RawString<'b>
[src]
fn clone(&self) -> RawString<'b>
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<'b> PartialEq for RawString<'b>
[src]
fn eq(&self, __arg_0: &RawString<'b>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawString<'b>) -> bool
This method tests for !=
.