Struct consecuit::construction::component::ComponentBuilder[][src]

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

The initial consecuit or cc object every component takes as first argument.

For more information on how to write components, see the docs at crate.

Implementations

Make it ready to call .hook(...), .comp(...). You shouldn’t need this, as we have a shortbut that automatically call it when you call .hook(...), .comp(...).

This is a shortcut that calls cc.init().hook(...)

It is here so you don’t have to write let cc = cc.init(); at the beginning of every component.

See the docs at crate on how to call hooks. See ComponentConstruction for the actual .hook(...).

This is a shortcut that calls cc.init().comp(...)

It is here so you don’t have to write let cc = cc.init(); at the beginning of every component.

See the docs at crate on how to compose components. See ComponentConstruction for the actual .comp(...).

This is a shortcut that calls cc.init().dyn_comp(...)

It is here so you don’t have to write let cc = cc.init(); at the beginning of every component.

See ComponentConstruction for the actual .dyn_comp(...) for more details.

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.

Should always be Self

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.