pub struct FunctionCardIndex {
pub indices: SmallVec<[u32; 4]>,
}
Fields§
§indices: SmallVec<[u32; 4]>
Implementations§
Source§impl FunctionCardIndex
impl FunctionCardIndex
pub fn new(card_index: usize) -> Self
pub fn depth(&self) -> usize
Sourcepub fn with_sub_index(self, card_index: usize) -> Self
pub fn with_sub_index(self, card_index: usize) -> Self
pushes a new sub-index to the bottom layer
pub fn push_sub_index(&mut self, card_index: usize)
pub fn current_index(&self) -> usize
Sourcepub fn with_current_index(self, card_index: usize) -> Self
pub fn with_current_index(self, card_index: usize) -> Self
Replaces the card index of the leaf node
pub fn set_current_index(&mut self, card_index: usize)
pub fn begin(&self) -> Result<usize, CardFetchError>
Trait Implementations§
Source§impl Clone for FunctionCardIndex
impl Clone for FunctionCardIndex
Source§fn clone(&self) -> FunctionCardIndex
fn clone(&self) -> FunctionCardIndex
Returns a duplicate 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 FunctionCardIndex
impl Debug for FunctionCardIndex
Source§impl Default for FunctionCardIndex
impl Default for FunctionCardIndex
Source§fn default() -> FunctionCardIndex
fn default() -> FunctionCardIndex
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionCardIndex
impl<'de> Deserialize<'de> for FunctionCardIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FunctionCardIndex
impl Hash for FunctionCardIndex
Source§impl PartialEq for FunctionCardIndex
impl PartialEq for FunctionCardIndex
Source§impl Serialize for FunctionCardIndex
impl Serialize for FunctionCardIndex
impl Eq for FunctionCardIndex
impl StructuralPartialEq for FunctionCardIndex
Auto Trait Implementations§
impl Freeze for FunctionCardIndex
impl RefUnwindSafe for FunctionCardIndex
impl Send for FunctionCardIndex
impl Sync for FunctionCardIndex
impl Unpin for FunctionCardIndex
impl UnwindSafe for FunctionCardIndex
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