[][src]Trait ordcode::primitives::SerializableValue

pub trait SerializableValue: Sized {
    pub fn to_writer<P: EncodingParams>(
        &self,
        writer: impl WriteBytes,
        params: P
    ) -> Result;
pub fn from_reader<P: EncodingParams>(
        reader: impl ReadBytes,
        params: P
    ) -> Result<Self>; }

Serializable value

This crate implements this trait for all primitive types. For complex types, use provided serde serializer and deserializer.

Required methods

pub fn to_writer<P: EncodingParams>(
    &self,
    writer: impl WriteBytes,
    params: P
) -> Result
[src]

pub fn from_reader<P: EncodingParams>(
    reader: impl ReadBytes,
    params: P
) -> Result<Self>
[src]

Loading content...

Implementations on Foreign Types

impl SerializableValue for u8[src]

impl SerializableValue for i8[src]

impl SerializableValue for u16[src]

impl SerializableValue for i16[src]

impl SerializableValue for u32[src]

impl SerializableValue for i32[src]

impl SerializableValue for u64[src]

impl SerializableValue for i64[src]

impl SerializableValue for u128[src]

impl SerializableValue for i128[src]

impl SerializableValue for bool[src]

impl SerializableValue for char[src]

impl SerializableValue for f32[src]

impl SerializableValue for f64[src]

Loading content...

Implementors

Loading content...