Enum nt_hive::NtHiveNameString [−][src]
Expand description
Zero-copy representation of a key name or value name string stored in hive data. Can be either in Latin1 (ISO-8859-1) or UTF-16 (Little-Endian).
This allows to work with the string without performing any allocations or conversions.
If the alloc
feature is enabled, to_string_checked
and
to_string_lossy
can be used to to retrieve a String
.
Variants
A byte stream where each byte is a single character of the Latin1 (ISO-8859-1)
character set.
Each byte can simply be casted to a char
(as Unicode is ordered the same as Latin1).
A byte stream where every two bytes make up a UTF-16 code point in little-endian order.
Use u16::from_le_bytes
and char::decode_utf16
if you want to get a stream of char
s.
Implementations
Returns the length of self
.
This length is in bytes, not characters! In other words, it may not be what a human considers the length of the string.
Attempts to convert self
to an owned String
.
Returns Some(String)
if all characters could be converted successfully or None
if a decoding error occurred.
Converts self
to an owned String
, replacing invalid data with the replacement character (U+FFFD).
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for NtHiveNameString<'a>
impl<'a> Send for NtHiveNameString<'a>
impl<'a> Sync for NtHiveNameString<'a>
impl<'a> Unpin for NtHiveNameString<'a>
impl<'a> UnwindSafe for NtHiveNameString<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more