[−][src]Trait writeable::Writeable
Writeable is an alternative to std::fmt::Display with the addition of a length function.
Required methods
fn write_to(&self, sink: &mut dyn Write) -> Result
Writes bytes to the given sink. Errors from the sink are bubbled up.
fn write_len(&self) -> usize
Returns an estimation of the number of bytes that will be written to the sink. The actual number of bytes may be slightly different than what this function returns.
This function may return an enumeration in the future. See: https://github.com/unicode-org/icu4x/issues/370
Provided methods
fn writeable_to_string(&self) -> String
Creates a new String with the data from this Writeable. Like ToString, but faster.