pub trait Unparsable<C: Context> {
// Required method
fn to_unit(&self, context: &C) -> Unit;
}Expand description
The reverse of Parsable: emits a token Unit from a value.
Round-trip target: for a value v of type T: Parsable<C> + Unparsable<C>,
parsing the unit returned by v.to_unit(context) yields a value equal to v.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".