Struct iodyn::raz_meta::Count
[−]
[src]
pub struct Count(pub usize);
Meta data for element count and positioning from the left
usize::max_value() is a special marker for the end of the sequence, otherwise, values too large will fail in some appropriate way.
Trait Implementations
impl Clone for Count
[src]
fn clone(&self) -> Count
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Count
[src]
impl PartialEq for Count
[src]
fn eq(&self, __arg_0: &Count) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Count) -> bool
This method tests for !=
.
impl Hash for Count
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Count
[src]
impl<E> RazMeta<E> for Count
[src]
type Index = usize
fn from_none(_lev: u32, _n: Option<Name>) -> Self
create meta data for an empty branch Read more
fn from_vec(vec: &Vec<E>, _lev: u32, _n: Option<Name>) -> Self
create meta data from a leaf vec Read more
fn from_meta(Count: &Self, Count: &Self, _l: u32, _n: Option<Name>) -> Self
create meta data from the pair of meta data in branches Read more
choose a branch and create an adjusted index for that branch
fn split_vec<'a>(vec: &'a Vec<E>, index: &Self::Index) -> (&'a [E], &'a [E])
Panics
Panics if the index is too high