Enum adapton::collection::Tree
[−]
[src]
pub enum Tree<A: Adapton, X, Lev> { Nil, Leaf(X), Bin(Lev, Box<Tree<A, X, Lev>>, Box<Tree<A, X, Lev>>), Name(A::Name, Lev, Box<Tree<A, X, Lev>>, Box<Tree<A, X, Lev>>), Rc(Rc<Tree<A, X, Lev>>), Art(Art<Tree<A, X, Lev>, A::Loc>), }
Variants
Nil
Leaf(X)
Bin(Lev, Box<Tree<A, X, Lev>>, Box<Tree<A, X, Lev>>)
Name(A::Name, Lev, Box<Tree<A, X, Lev>>, Box<Tree<A, X, Lev>>)
Rc(Rc<Tree<A, X, Lev>>)
Art(Art<Tree<A, X, Lev>, A::Loc>)
Trait Implementations
impl<A: Clone + Adapton, X: Clone, Lev: Clone> Clone for Tree<A, X, Lev> where A::Name: Clone, A::Loc: Clone
[src]
fn clone(&self) -> Tree<A, X, Lev>
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<A: Hash + Adapton, X: Hash, Lev: Hash> Hash for Tree<A, X, Lev> where A::Name: Hash, A::Loc: Hash
[src]
fn hash<__HAXLev: Hasher>(&self, __arg_0: &mut __HAXLev)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<A: Eq + Adapton, X: Eq, Lev: Eq> Eq for Tree<A, X, Lev> where A::Name: Eq, A::Loc: Eq
[src]
impl<A: PartialEq + Adapton, X: PartialEq, Lev: PartialEq> PartialEq for Tree<A, X, Lev> where A::Name: PartialEq, A::Loc: PartialEq
[src]
fn eq(&self, __arg_0: &Tree<A, X, Lev>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Tree<A, X, Lev>) -> bool
This method tests for !=
.