Skip to main content

BodyVisitor

Trait BodyVisitor 

Source
pub trait BodyVisitor {
    type Output;

    // Required method
    fn visit<B: Body>(self, body: &B) -> Self::Output;
}
Expand description

Something done with a command body of a type known only at run time (Command::visit).

Required Associated Types§

Source

type Output

The result.

Required Methods§

Source

fn visit<B: Body>(self, body: &B) -> Self::Output

Called with the typed body.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§