Struct fst::raw::Node[][src]

pub struct Node<'f> { /* fields omitted */ }
Expand description

Node represents a single state in a finite state transducer.

Nodes are very cheap to construct. Notably, they satisfy the Copy trait.

Implementations

Returns an iterator over all transitions in this node in lexicographic order.

Returns the transition at index i.

Returns the transition address of the ith transition.

Finds the ith transition corresponding to the given input byte.

If no transition for this byte exists, then None is returned.

If this node is final and has a terminal output value, then it is returned. Otherwise, a zero output is returned.

Returns true if and only if this node corresponds to a final or “match” state in the finite state transducer.

Returns the number of transitions in this node.

The maximum number of transitions is 256.

Returns true if and only if this node has zero transitions.

Return the address of this node.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.