Struct spirit::WrapBody

source ·
pub struct WrapBody(_);
Expand description

A wrapper around a body.

These are essentially boxed closures submitted by body_wrapper (or all of them folded together), but in a form that is usable (in contrast to Box<FnOnce(InnerBody) -> Result(), Error>). It is part of the return value of build and the caller should call it eventually.

Implementations§

Call the closure inside.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.