Struct iodyn::raz_meta::Names
[−]
[src]
pub struct Names(pub HashMap<Name, ()>);
Metadata for names in a raz tree.
Hash is implemented by a no-op, since the data here can be found elsewhere in the tree. This is not intended to be used outside of a raz.
Trait Implementations
impl Clone for Names
[src]
fn clone(&self) -> Names
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 Names
[src]
impl PartialEq for Names
[src]
fn eq(&self, __arg_0: &Names) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Names) -> bool
This method tests for !=
.
impl Debug for Names
[src]
impl Hash for Names
[src]
fn hash<H: Hasher>(&self, _state: &mut H)
does nothing
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<E> RazMeta<E> for Names
[src]
type Index = Position<Name>
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(l: &Self, r: &Self, _lev: 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 a name is given as index