Struct tree_decorator::DecoratorBuilder[][src]

pub struct DecoratorBuilder { /* fields omitted */ }
Expand description

Builds a Decorator and prepares it.

A builder can be created by providing a custom Decorator through ref or moving value.

By default, StandardDecorator will be used.

Implementations

Starts builder with a Decorator static reference.

Starts builder with a Decorator.

Defines a default handler to tree items.

Each call to tree_item! will also call provided handler.

It isn’t required, but can be used to simplify calls.

Completes decorator build and effectively starts using it.

Trait Implementations

Returns the “default value” for a type. 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.