pub trait Decoration where
    Self: NodeImpl
{ type Arguments: 'static; type Decorated: NodeImpl<Invocation = InvocationOf<Self>>; fn wrap(
        decorated: Self::Decorated,
        arguments: Self::Arguments
    ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>; 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.

Required Associated Types

Arguments this decoration requires.

See 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