pub fn to_writer<T, W>(value: &T, writer: &mut W) -> Result<()>
where
    T: Serialize,
    W: Write,
{
    let mut serializer = Serializer { writer };
    value.serialize(&mut serializer)?;
    Ok(())
}
/// Serialize to writer with `Write` trait.
///
/// # Errors
/// Please refer to [Error](Error)
Serialize to writer with `Write` trait.
Serialize to writer with ` Write ` trait .
pub fn to_writer<T, W>(value: &T, writer: &mut W) -> Result<()>
where
    T: Serialize,
    W: Write,
{
    let mut serializer = Serializer { writer };
    value.serialize(&mut serializer)?;
    Ok(())
}
pub fn to_writer < T , W > ( value : & T , writer : & mut W ) -> Result < ( ) > where T : Serialize , W : Write , { let mut serializer = Serializer { writer } ; value . serialize ( & mut serializer ) ? ; Ok ( ( ) ) }
Serialize to writer with `Write` trait.
Serialize to writer with ` Write ` trait .
value
&T
writer
&mut W
errors
Please refer to [Error](Error)
Please refer to [ Error ] ( Error )