pub trait ToKi2 {
    fn to_ki2<W: Write>(&self, sink: &mut W) -> Result;

    fn to_ki2_owned(&self) -> String { ... }
}
Expand description

A type that is convertible to KI2 format.

Required Methods

Write self in KI2 format.

This function returns Err(core::fmt::Error) if and only if it fails to write to sink.

Provided Methods

Returns self’s string representation.

Implementors