Function bincode::serde::serialize  
            
                [−]
            
        [src]
pub fn serialize<T>(value: &T, size_limit: SizeLimit) -> SerializeResult<Vec<u8>> where T: SerializeSerializes a serializable object into a Vec of bytes.
If the serialization would take more bytes than allowed by size_limit,
an error is returned.