Struct nimble_rust::Steps
source · pub struct Steps<T> { /* private fields */ }
Implementations§
source§impl<StepType> Steps<StepType>where
StepType: Clone,
impl<StepType> Steps<StepType>where
StepType: Clone,
pub fn new() -> Steps<StepType>
pub fn clear(&mut self)
pub fn new_with_initial_tick(initial_tick_id: TickId) -> Steps<StepType>
pub fn push_with_check( &mut self, tick_id: TickId, step: StepType, ) -> Result<(), String>
pub fn push(&mut self, step: StepType)
pub fn debug_get(&self, index: usize) -> Option<&StepInfo<StepType>>
pub fn pop(&mut self) -> Option<StepInfo<StepType>>
pub fn pop_up_to(&mut self, tick_id: TickId)
pub fn pop_count(&mut self, count: usize)
pub fn front_tick_id(&self) -> Option<TickId>
pub fn expected_write_tick_id(&self) -> TickId
pub fn back_tick_id(&self) -> Option<TickId>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_vec(&self) -> Vec<StepType>
pub fn iter_index(&self, start_index: usize) -> FromIndexIterator<'_, StepType> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Steps<T>
impl<T> RefUnwindSafe for Steps<T>where
T: RefUnwindSafe,
impl<T> Send for Steps<T>where
T: Send,
impl<T> Sync for Steps<T>where
T: Sync,
impl<T> Unpin for Steps<T>where
T: Unpin,
impl<T> UnwindSafe for Steps<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