Struct spirit::InnerBody

source ·
pub struct InnerBody(_);
Expand description

A workaround type for Box<FnOnce() -> Result<(), Error>.

Since it is not possible to use the aforementioned type in any meaningful way in Rust yet, this works around the problem. The type has a run method which does the same thing.

This is passed as parameter to the body_wrapper.

It is also returned as part of the build’s result.

Implementations§

Run the body.

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.