[−][src]Trait ordcode::primitives::SerializableValue
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]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
Implementations on Foreign Types
impl SerializableValue for u8
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
_params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
_params: P
) -> Result<Self>
impl SerializableValue for i8
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for u16
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
_params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
_params: P
) -> Result<Self>
impl SerializableValue for i16
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for u32
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
_params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
_params: P
) -> Result<Self>
impl SerializableValue for i32
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for u64
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
_params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
_params: P
) -> Result<Self>
impl SerializableValue for i64
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for u128
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
_params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
_params: P
) -> Result<Self>
impl SerializableValue for i128
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for bool
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for char
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for f32
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>
impl SerializableValue for f64
[src]
pub fn to_writer<P: EncodingParams>(
&self,
writer: impl WriteBytes,
_params: P
) -> Result
[src]
&self,
writer: impl WriteBytes,
_params: P
) -> Result
pub fn from_reader<P: EncodingParams>(
reader: impl ReadBytes,
params: P
) -> Result<Self>
[src]
reader: impl ReadBytes,
params: P
) -> Result<Self>