Enum itc::IdTree
[−]
[src]
pub enum IdTree { Leaf { i: bool, }, Node { left: Box<IdTree>, right: Box<IdTree>, }, }
Variants
Leaf
Fields
i: bool |
Node
Fields
left: Box<IdTree> | |
right: Box<IdTree> |
Methods
impl IdTree
[src]
fn leaf(i: bool) -> IdTree
fn zero() -> IdTree
fn one() -> IdTree
fn node(left: Box<IdTree>, right: Box<IdTree>) -> IdTree
Trait Implementations
impl Display for IdTree
[src]
impl FromStr for IdTree
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Debug for IdTree
[src]
impl Clone for IdTree
[src]
fn clone(&self) -> IdTree
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 PartialEq for IdTree
[src]
fn eq(&self, __arg_0: &IdTree) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IdTree) -> bool
This method tests for !=
.