Enum bracket_parse::Bracket [−][src]
Variants
Branch(Vec<Bracket>)Leaf(String)Empty
Methods
impl Bracket[src]
impl Bracketpub fn sib(self, s: Self) -> Self[src]
pub fn sib(self, s: Self) -> Selfchaining method for quickly creating a tree Adds a sibling to a bracket if it is a leaf makes it a parent.
pub fn sib_lf(self, s: &str) -> Self[src]
pub fn sib_lf(self, s: &str) -> Selfchainging method for easily adding a leaf as a sibling from an &str
pub fn head<'a>(&'a self) -> &'a Bracket[src]
pub fn head<'a>(&'a self) -> &'a Bracketpub fn tail<'a>(&'a self) -> Tail<'a>[src]
pub fn tail<'a>(&'a self) -> Tail<'a>pub fn head_tail<'a>(&'a self) -> (&'a Bracket, Tail<'a>)[src]
pub fn head_tail<'a>(&'a self) -> (&'a Bracket, Tail<'a>)pub fn match_str<'a>(&'a self) -> &'a str[src]
pub fn match_str<'a>(&'a self) -> &'a strTrait Implementations
impl PartialEq for Bracket[src]
impl PartialEq for Bracketfn eq(&self, other: &Bracket) -> bool[src]
fn eq(&self, other: &Bracket) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Bracket) -> bool[src]
fn ne(&self, other: &Bracket) -> boolThis method tests for !=.
impl Debug for Bracket[src]
impl Debug for Bracketfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for Bracket[src]
impl FromStr for Bracket