[−][src]Trait rust_lcm_codec::SerializeValue
Value serialization helper trait, oriented towards primitives.
Required methods
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
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>
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
Implementors
impl SerializeValue for bool
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<<R as StreamingReader>::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<<R as StreamingReader>::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for f32
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for f64
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for i8
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for i16
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for i32
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for i64
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>
impl SerializeValue for u8
[src]
fn read_value<R: StreamingReader>(
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
[src]
reader: &mut R
) -> Result<Self, DecodeValueError<R::Error>>
fn write_value<W: StreamingWriter>(
val: Self,
writer: &mut W
) -> Result<(), W::Error>
[src]
val: Self,
writer: &mut W
) -> Result<(), W::Error>