Function zvariant::to_writer_for_signature[][src]

pub fn to_writer_for_signature<B, W, T: ?Sized>(
    writer: &mut W,
    ctxt: EncodingContext<B>,
    signature: &Signature<'_>,
    value: &T
) -> Result<usize> where
    B: ByteOrder,
    W: Write + Seek,
    T: Serialize

Serialize T that has the given signature, to the given writer.

Use this function instead of to_writer if the value being serialized does not implement Type.

This function returns the number of bytes written to the given writer.