Struct socarel::Forest[][src]

pub struct Forest<T: NodeContent = RawNode> { /* fields omitted */ }
Expand description

A forest is a set of trees.

Implementations

Create an empty forest.

Create new empty tree.

Arguments

  • name - Tree name.

Return

  • Nothing.

Add a tree to forest.

Arguments

  • name - Tree name.
  • forest - Tree struct.

Return

  • Nothing.

Remove tree from the forest.

Arguments

  • name - Tree name.

Return

  • An Option with the removed tree.

Get tree reference.

Arguments

  • name - Tree name.

Return

  • An Option with the tree reference.

Get mutable tree reference.

Arguments

  • name - Tree name.

Return

  • An Option with the mut tree reference.

Get forest iterator.

Return

  • Iterator, provides a tuple with tree_name<String>, tree_struct<Tree>.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.