[][src]Trait microkelvin::Nth

pub trait Nth<'a, S> where
    Self: Compound<S> + Sized,
    Self::Annotation: Annotation<Self, S>,
    S: Store
{ pub fn nth<const N: usize>(
        &'a self,
        n: u64
    ) -> Result<Option<Branch<'a, Self, S, N>>, S::Error>;
pub fn nth_mut<const N: usize>(
        &'a mut self,
        n: u64
    ) -> Result<Option<BranchMut<'a, Self, S, N>>, S::Error>; }

Find the nth element of any collection satisfying the given annotation constraints

Required methods

pub fn nth<const N: usize>(
    &'a self,
    n: u64
) -> Result<Option<Branch<'a, Self, S, N>>, S::Error>
[src]

Construct a Branch pointing to the nth element, if any

pub fn nth_mut<const N: usize>(
    &'a mut self,
    n: u64
) -> Result<Option<BranchMut<'a, Self, S, N>>, S::Error>
[src]

Construct a BranchMut pointing to the nth element, if any

Loading content...

Implementors

impl<'a, C, S> Nth<'a, S> for C where
    C: Compound<S>,
    C::Annotation: Annotation<C, S> + Borrow<Cardinality>,
    S: Store
[src]

Loading content...