Trait paxakos::decoration::Decoration[][src]

pub trait Decoration where
    Self: NodeImpl
{ type Arguments: 'static; type Decorated: NodeImpl; fn wrap(
        decorated: Self::Decorated,
        arguments: Self::Arguments
    ) -> Result<Self, SpawnError>;
fn peek_into(decorated: &Self) -> &Self::Decorated;
fn unwrap(decorated: Self) -> Self::Decorated; }
Expand description

A decoration around a Node.

Use decorated_with to wrap a decoration around a node.

Associated Types

Arguments this decoration requires.

See NodeBuilder::decorated_with.

Type of the decorated node.

Required methods

Wraps this decoration around the given node, using the given arguments.

Returns a reference to the decorated node.

Unwraps this decoration.

Implementors