pub struct FixedSeqToken<T, const N: usize>(pub [T; N]);
Expand description
A Fixed Sequence - T[N]
Tuple Fields§
§0: [T; N]
Implementations§
Trait Implementations§
Source§impl<T: Clone, const N: usize> Clone for FixedSeqToken<T, N>
impl<T: Clone, const N: usize> Clone for FixedSeqToken<T, N>
Source§fn clone(&self) -> FixedSeqToken<T, N>
fn clone(&self) -> FixedSeqToken<T, N>
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<'de, T: Token<'de>, const N: usize> Token<'de> for FixedSeqToken<T, N>
impl<'de, T: Token<'de>, const N: usize> Token<'de> for FixedSeqToken<T, N>
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<T: Eq, const N: usize> Eq for FixedSeqToken<T, N>
impl<T, const N: usize> StructuralPartialEq for FixedSeqToken<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for FixedSeqToken<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for FixedSeqToken<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for FixedSeqToken<T, N>where
T: Send,
impl<T, const N: usize> Sync for FixedSeqToken<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for FixedSeqToken<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for FixedSeqToken<T, N>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
)