pub trait DirectRender {
// Required method
fn render(&self, out: &mut String);
}Expand description
Renders a command’s successful value as the text it writes to standard output.
A domain type renders itself by implementing this. A value that renders nothing writes nothing.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<Value: DirectRender> DirectRender for Option<Value>
Renders nothing when absent.
impl<Value: DirectRender> DirectRender for Option<Value>
Renders nothing when absent.
Source§impl<Value: DirectRender> DirectRender for Vec<Value>
Renders one value per line.
impl<Value: DirectRender> DirectRender for Vec<Value>
Renders one value per line.