Enum bracket_parse::Bracket[][src]

pub enum Bracket {
    Branch(Vec<Bracket>),
    Leaf(String),
    Empty,
}

Variants

Methods

impl Bracket
[src]

chaining method for quickly creating a tree Adds a sibling to a bracket if it is a leaf makes it a parent.

chainging method for easily adding a leaf as a sibling from an &str

Trait Implementations

impl PartialEq for Bracket
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Bracket
[src]

Formats the value using the given formatter. Read more

impl FromStr for Bracket
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl<'a> IntoIterator for &'a Bracket
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl Display for Bracket
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Bracket

impl Sync for Bracket