Trait strict_encoding::StrictEncode
source · pub trait StrictEncode: StrictType {
// Required method
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>;
// Provided method
fn strict_write(&self, writer: impl WriteRaw) -> Result<()> { ... }
}Required Methods§
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
Provided Methods§
fn strict_write(&self, writer: impl WriteRaw) -> Result<()>
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl StrictEncode for bool
impl StrictEncode for bool
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i8
impl StrictEncode for i8
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i16
impl StrictEncode for i16
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i32
impl StrictEncode for i32
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i64
impl StrictEncode for i64
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i128
impl StrictEncode for i128
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u8
impl StrictEncode for u8
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u16
impl StrictEncode for u16
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u32
impl StrictEncode for u32
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u64
impl StrictEncode for u64
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u128
impl StrictEncode for u128
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for ()
impl StrictEncode for ()
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for Double
Available on crate feature float only.
impl StrictEncode for Double
Available on crate feature
float only.fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for Half
Available on crate feature float only.
impl StrictEncode for Half
Available on crate feature
float only.fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for Oct
Available on crate feature float only.
impl StrictEncode for Oct
Available on crate feature
float only.fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for Quad
Available on crate feature float only.
impl StrictEncode for Quad
Available on crate feature
float only.fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for Single
Available on crate feature float only.
impl StrictEncode for Single
Available on crate feature
float only.fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for X87DoubleExtended
Available on crate feature float only.
impl StrictEncode for X87DoubleExtended
Available on crate feature
float only.