[][src]Trait rust_lcm_codec::SerializeValue

pub trait SerializeValue: Sized {
    fn read_value<R: StreamingReader>(
        reader: &mut R
    ) -> Result<Self, DecodeValueError<R::Error>>;
fn write_value<W: StreamingWriter>(
        val: Self,
        writer: &mut W
    ) -> Result<(), W::Error>; }

Value serialization helper trait, oriented towards primitives.

Required methods

fn read_value<R: StreamingReader>(
    reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>

Use a StreamingReader to produce an instance of the implementing type from an encoded stream of LCM data

fn write_value<W: StreamingWriter>(
    val: Self,
    writer: &mut W
) -> Result<(), W::Error>

Use a StreamingWriter to write an instance of the implementing type to an encoded stream of LCM data

Loading content...

Implementors

impl SerializeValue for bool[src]

impl SerializeValue for f32[src]

impl SerializeValue for f64[src]

impl SerializeValue for i8[src]

impl SerializeValue for i16[src]

impl SerializeValue for i32[src]

impl SerializeValue for i64[src]

impl SerializeValue for u8[src]

Loading content...