Struct bakery::Node[][src]

pub struct Node {
    pub name: Option<String>,
    pub source: Option<SourceLocation>,
    pub content: NodeContent,
}
Expand description

Node for recipe tree

Each node can represent a structure definition, a typedef, a namespace…

Fields

name: Option<String>source: Option<SourceLocation>content: NodeContent

Implementations

Create a node with a name but no source.

Arguments
  • name - Node name
  • content - Node content

Create a node with no name and no source.

Arguments
  • content - Node content

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.