Skip to main content

Handles

Trait Handles 

Source
pub trait Handles<P, O, S> {
    type Place;
    type Value;
    type Text;
    type Error;

    // Required methods
    fn place(&mut self, place: P) -> Result<Self::Place, Self::Error>;
    fn value(&mut self, value: O) -> Result<Self::Value, Self::Error>;
    fn text(&mut self, text: S) -> Result<Self::Text, Self::Error>;
}
Expand description

Turns a command’s handles into another executor’s, as lowering turns the walker’s references into the LIR’s ids.

Required Associated Types§

Required Methods§

Source

fn place(&mut self, place: P) -> Result<Self::Place, Self::Error>

Source

fn value(&mut self, value: O) -> Result<Self::Value, Self::Error>

Source

fn text(&mut self, text: S) -> Result<Self::Text, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§