Struct pdb::RawString [] [src]

pub struct RawString<'b>(_);

RawString refers to a &[u8] that physically resides somewhere inside a PDB data structure.

A RawString may not be valid UTF-8.

Methods

impl<'b> RawString<'b>
[src]

[src]

Return the raw bytes of this string, as found in the PDB file.

[src]

Return the length of this string in bytes.

[src]

Returns a boolean indicating if this string is empty.

[src]

Returns a UTF-8 String, substituting in replacement characters as needed.

This uses String::from_utf8_lossy() and thus avoids copying in cases where the original string was valid UTF-8. This is the expected case for strings that appear in PDB files, since they are almost always composed of printable 7-bit ASCII characters.

Trait Implementations

impl<'b> Clone for RawString<'b>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'b> PartialEq for RawString<'b>
[src]

[src]

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

[src]

This method tests for !=.

impl<'b> Eq for RawString<'b>
[src]

impl<'b> Hash for RawString<'b>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'b> PartialOrd for RawString<'b>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'b> Ord for RawString<'b>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<'b> Debug for RawString<'b>
[src]

[src]

Formats the value using the given formatter.

impl<'b> Display for RawString<'b>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'b> From<&'b str> for RawString<'b>
[src]

[src]

Performs the conversion.

impl<'b> From<&'b [u8]> for RawString<'b>
[src]

[src]

Performs the conversion.