usecrate::{Error, Writer};/// A trait for types that can be encoded into a `Writer`.
pubtraitEncode<Ctx = ()>
where
Self::Error: From<Error>,
{typeError;/// Encodes a value of this type into the given writer.
fnencode(&self, w:&mutWriter<Ctx>)->Result<(), Self::Error>;}