Struct rustc_demangle::v0::HexNibbles
source · struct HexNibbles<'s> {
nibbles: &'s str,
}
Expand description
Sequence of lowercase hexadecimal nibbles (0-9a-f
), used by leaf consts.
Fields§
§nibbles: &'s str
Implementations§
source§impl<'s> HexNibbles<'s>
impl<'s> HexNibbles<'s>
sourcefn try_parse_uint(&self) -> Option<u64>
fn try_parse_uint(&self) -> Option<u64>
Decode an integer value (with the “most significant nibble” first),
returning None
if it can’t fit in an u64
.
sourcefn try_parse_str_chars(&self) -> Option<impl Iterator<Item = char> + 's>
fn try_parse_str_chars(&self) -> Option<impl Iterator<Item = char> + 's>
Decode a UTF-8 byte sequence (with each byte using a pair of nibbles)
into individual char
s, returning None
for invalid UTF-8.
Auto Trait Implementations§
impl<'s> Freeze for HexNibbles<'s>
impl<'s> RefUnwindSafe for HexNibbles<'s>
impl<'s> Send for HexNibbles<'s>
impl<'s> Sync for HexNibbles<'s>
impl<'s> Unpin for HexNibbles<'s>
impl<'s> UnwindSafe for HexNibbles<'s>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more