pub struct SequenceIndices<const MAX_SEQUENCE_LEN: usize> { /* private fields */ }Expand description
Ordered keymap indices for one sequence.
Implementations§
Source§impl<const MAX_SEQUENCE_LEN: usize> SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> SequenceIndices<MAX_SEQUENCE_LEN>
Sourcepub const fn from_slice(indices: &[u16]) -> SequenceIndices<MAX_SEQUENCE_LEN>
pub const fn from_slice(indices: &[u16]) -> SequenceIndices<MAX_SEQUENCE_LEN>
Constructs from a slice (must fit MAX_SEQUENCE_LEN).
Trait Implementations§
Source§impl<const MAX_SEQUENCE_LEN: usize> Clone for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> Clone for SequenceIndices<MAX_SEQUENCE_LEN>
Source§fn clone(&self) -> SequenceIndices<MAX_SEQUENCE_LEN>
fn clone(&self) -> SequenceIndices<MAX_SEQUENCE_LEN>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const MAX_SEQUENCE_LEN: usize> Debug for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> Debug for SequenceIndices<MAX_SEQUENCE_LEN>
Source§impl<'de, const MAX_SEQUENCE_LEN: usize> Deserialize<'de> for SequenceIndices<MAX_SEQUENCE_LEN>
impl<'de, const MAX_SEQUENCE_LEN: usize> Deserialize<'de> for SequenceIndices<MAX_SEQUENCE_LEN>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SequenceIndices<MAX_SEQUENCE_LEN>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SequenceIndices<MAX_SEQUENCE_LEN>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const MAX_SEQUENCE_LEN: usize> From<Vec<u16, MAX_SEQUENCE_LEN>> for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> From<Vec<u16, MAX_SEQUENCE_LEN>> for SequenceIndices<MAX_SEQUENCE_LEN>
Source§fn from(v: Vec<u16, MAX_SEQUENCE_LEN>) -> SequenceIndices<MAX_SEQUENCE_LEN>
fn from(v: Vec<u16, MAX_SEQUENCE_LEN>) -> SequenceIndices<MAX_SEQUENCE_LEN>
Converts to this type from the input type.
Source§impl<const MAX_SEQUENCE_LEN: usize> PartialEq for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> PartialEq for SequenceIndices<MAX_SEQUENCE_LEN>
Source§fn eq(&self, other: &SequenceIndices<MAX_SEQUENCE_LEN>) -> bool
fn eq(&self, other: &SequenceIndices<MAX_SEQUENCE_LEN>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const MAX_SEQUENCE_LEN: usize> Copy for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> StructuralPartialEq for SequenceIndices<MAX_SEQUENCE_LEN>
Auto Trait Implementations§
impl<const MAX_SEQUENCE_LEN: usize> Freeze for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> RefUnwindSafe for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> Send for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> Sync for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> Unpin for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> UnsafeUnpin for SequenceIndices<MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCE_LEN: usize> UnwindSafe for SequenceIndices<MAX_SEQUENCE_LEN>
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