Struct SimpleOutput
Source pub struct SimpleOutput<I: IoOutput> {
pub io_output: I,
pub context: DynContext,
}
Expand description
An output that simply composes an owned I/O stream with a dynamic context
The I/O stream type
The context holder
The error type for write operations.
Writes the given value to the output.
Splits into the context and the I/O stream, so that they can be used separately
Gets all the context associated with this output
Gets a particular context value
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.