Struct RefIterator

Source
pub struct RefIterator<'a, CF, CB, A> { /* private fields */ }

Implementations§

Source§

impl<'a, A, CFV, CFN: NotEmpty, CB> RefIterator<'a, Node<CFV, CFN>, CB, A>

Source

pub const fn next(self) -> RefIterator<'a, CFN, Node<CFV, CB>, A>

Source§

impl<'a, A, CF, CBV, CBN> RefIterator<'a, CF, Node<CBV, CBN>, A>

Source

pub const fn prev(self) -> RefIterator<'a, Node<CBV, CF>, CBN, A>

Source§

impl<'a, const N: usize, F, B, CFV, CFN, CB: MemorySize> RefIterator<'a, Node<CFV, CFN>, CB, Array<N, F, B>>

Source

pub const fn index(&self) -> usize

Source

pub fn value(&self) -> &CFV

Source§

impl<'a, const N: usize, F, B: RemoveFirst, CFV, CFN, CB: MemorySize> RefIterator<'a, Node<CFV, CFN>, CB, Array<N, F, B>>

Source

pub const fn forward(self) -> RefIterator<'a, F, Empty, Array<N, F, B>>

Source

pub const fn backward( self, ) -> RefIterator<'a, B::Element, B::Rest, Array<N, F, B>>

Auto Trait Implementations§

§

impl<'a, CF, CB, A> Freeze for RefIterator<'a, CF, CB, A>

§

impl<'a, CF, CB, A> RefUnwindSafe for RefIterator<'a, CF, CB, A>

§

impl<'a, CF, CB, A> Send for RefIterator<'a, CF, CB, A>
where A: Sync, CF: Send, CB: Send,

§

impl<'a, CF, CB, A> Sync for RefIterator<'a, CF, CB, A>
where A: Sync, CF: Sync, CB: Sync,

§

impl<'a, CF, CB, A> Unpin for RefIterator<'a, CF, CB, A>
where CF: Unpin, CB: Unpin,

§

impl<'a, CF, CB, A> UnwindSafe for RefIterator<'a, CF, CB, A>
where A: RefUnwindSafe, CF: UnwindSafe, CB: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.