pub struct PackedSeqToken<'a>(pub &'a [u8]);
Expand description
A Packed Sequence - bytes
or string
Tuple Fields§
§0: &'a [u8]
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for PackedSeqToken<'_>
impl AsRef<[u8]> for PackedSeqToken<'_>
Source§impl<'a> Clone for PackedSeqToken<'a>
impl<'a> Clone for PackedSeqToken<'a>
Source§fn clone(&self) -> PackedSeqToken<'a>
fn clone(&self) -> PackedSeqToken<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackedSeqToken<'_>
impl Debug for PackedSeqToken<'_>
Source§impl<'a> From<&'a [u8]> for PackedSeqToken<'a>
impl<'a> From<&'a [u8]> for PackedSeqToken<'a>
Source§impl<'a> PartialEq for PackedSeqToken<'a>
impl<'a> PartialEq for PackedSeqToken<'a>
Source§impl<'de: 'a, 'a> Token<'de> for PackedSeqToken<'a>
impl<'de: 'a, 'a> Token<'de> for PackedSeqToken<'a>
Source§fn decode_from(dec: &mut Decoder<'de>) -> Result<Self>
fn decode_from(dec: &mut Decoder<'de>) -> Result<Self>
Decode a token from a decoder.
Source§fn head_words(&self) -> usize
fn head_words(&self) -> usize
Calculate the number of head words.
Source§fn tail_words(&self) -> usize
fn tail_words(&self) -> usize
Calculate the number of tail words.
Source§fn head_append(&self, enc: &mut Encoder)
fn head_append(&self, enc: &mut Encoder)
Append head words to the encoder.
Source§fn tail_append(&self, enc: &mut Encoder)
fn tail_append(&self, enc: &mut Encoder)
Append tail words to the encoder.
Source§fn total_words(&self) -> usize
fn total_words(&self) -> usize
Calculate the total number of head and tail words.
impl<'a> Copy for PackedSeqToken<'a>
impl<'a> Eq for PackedSeqToken<'a>
impl<'a> StructuralPartialEq for PackedSeqToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackedSeqToken<'a>
impl<'a> RefUnwindSafe for PackedSeqToken<'a>
impl<'a> Send for PackedSeqToken<'a>
impl<'a> Sync for PackedSeqToken<'a>
impl<'a> Unpin for PackedSeqToken<'a>
impl<'a> UnwindSafe for PackedSeqToken<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).Source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
Source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
Encode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).Source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
Encode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).Source§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0x
.
Lower case letters are used (e.g. 0xf9b4ca
).Source§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0X
.
Upper case letters are used (e.g. 0xF9B4CA
).