pub struct DynSeqToken<T>(pub Vec<T>);
Expand description
A Dynamic Sequence - T[]
Tuple Fields§
§0: Vec<T>
Implementations§
Trait Implementations§
Source§impl<T> AsRef<[T]> for DynSeqToken<T>
impl<T> AsRef<[T]> for DynSeqToken<T>
Source§impl<T: Clone> Clone for DynSeqToken<T>
impl<T: Clone> Clone for DynSeqToken<T>
Source§fn clone(&self) -> DynSeqToken<T>
fn clone(&self) -> DynSeqToken<T>
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<T: Debug> Debug for DynSeqToken<T>
impl<T: Debug> Debug for DynSeqToken<T>
Source§impl<T> From<Vec<T>> for DynSeqToken<T>
impl<T> From<Vec<T>> for DynSeqToken<T>
Source§impl<T: PartialEq> PartialEq for DynSeqToken<T>
impl<T: PartialEq> PartialEq for DynSeqToken<T>
Source§impl<'de, T: Token<'de>> Token<'de> for DynSeqToken<T>
impl<'de, T: Token<'de>> Token<'de> for DynSeqToken<T>
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.
Source§impl<'de, T: Token<'de>> TokenSeq<'de> for DynSeqToken<T>
impl<'de, T: Token<'de>> TokenSeq<'de> for DynSeqToken<T>
impl<T: Eq> Eq for DynSeqToken<T>
impl<T> StructuralPartialEq for DynSeqToken<T>
Auto Trait Implementations§
impl<T> Freeze for DynSeqToken<T>
impl<T> RefUnwindSafe for DynSeqToken<T>where
T: RefUnwindSafe,
impl<T> Send for DynSeqToken<T>where
T: Send,
impl<T> Sync for DynSeqToken<T>where
T: Sync,
impl<T> Unpin for DynSeqToken<T>where
T: Unpin,
impl<T> UnwindSafe for DynSeqToken<T>where
T: UnwindSafe,
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
).