[][src]Trait beserial::SerializeWithLength

pub trait SerializeWithLength {
    fn serialize<S: Serialize + FromPrimitive, W: WriteBytesExt>(
        &self,
        writer: &mut W
    ) -> Result<usize, SerializingError>;
fn serialized_size<S: Serialize + FromPrimitive>(&self) -> usize; fn serialize_to_vec<S: Serialize + FromPrimitive>(&self) -> Vec<u8> { ... } }

Required methods

fn serialize<S: Serialize + FromPrimitive, W: WriteBytesExt>(
    &self,
    writer: &mut W
) -> Result<usize, SerializingError>

fn serialized_size<S: Serialize + FromPrimitive>(&self) -> usize

Loading content...

Provided methods

Loading content...

Implementations on Foreign Types

impl SerializeWithLength for String[src]

impl<T: Serialize> SerializeWithLength for Vec<T>[src]

impl<T, H> SerializeWithLength for HashSet<T, H> where
    T: Serialize + Eq + Hash,
    H: BuildHasher
[src]

impl<T: SerializeWithLength> SerializeWithLength for Option<T>[src]

Loading content...

Implementors

Loading content...