pub struct TickArraySequence<const SIZE: usize> { /* private fields */ }
Implementations§
§impl<const SIZE: usize> TickArraySequence<SIZE>
impl<const SIZE: usize> TickArraySequence<SIZE>
pub fn new( tick_arrays: [Option<TickArrayFacade>; SIZE], tick_spacing: u16, ) -> Result<TickArraySequence<SIZE>, &'static str>
pub fn start_index(&self) -> i32
pub fn start_index(&self) -> i32
Returns the first valid tick index in the sequence.
pub fn tick(&self, tick_index: i32) -> Result<&TickFacade, &'static str>
pub fn next_initialized_tick( &self, tick_index: i32, ) -> Result<(Option<&TickFacade>, i32), &'static str>
pub fn prev_initialized_tick( &self, tick_index: i32, ) -> Result<(Option<&TickFacade>, i32), &'static str>
Trait Implementations§
§impl<const SIZE: usize> Clone for TickArraySequence<SIZE>
impl<const SIZE: usize> Clone for TickArraySequence<SIZE>
§fn clone(&self) -> TickArraySequence<SIZE>
fn clone(&self) -> TickArraySequence<SIZE>
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 more§impl<const SIZE: usize> Debug for TickArraySequence<SIZE>
impl<const SIZE: usize> Debug for TickArraySequence<SIZE>
§impl<const SIZE: usize> PartialEq for TickArraySequence<SIZE>
impl<const SIZE: usize> PartialEq for TickArraySequence<SIZE>
impl<const SIZE: usize> Eq for TickArraySequence<SIZE>
impl<const SIZE: usize> StructuralPartialEq for TickArraySequence<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for TickArraySequence<SIZE>
impl<const SIZE: usize> RefUnwindSafe for TickArraySequence<SIZE>
impl<const SIZE: usize> Send for TickArraySequence<SIZE>
impl<const SIZE: usize> Sync for TickArraySequence<SIZE>
impl<const SIZE: usize> Unpin for TickArraySequence<SIZE>
impl<const SIZE: usize> UnwindSafe for TickArraySequence<SIZE>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more