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 i256
impl StrictEncode for i256
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i512
impl StrictEncode for i512
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for i1024
impl StrictEncode for i1024
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u256
impl StrictEncode for u256
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u512
impl StrictEncode for u512
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u1024
impl StrictEncode for u1024
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u1
impl StrictEncode for u1
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u2
impl StrictEncode for u2
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u3
impl StrictEncode for u3
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u4
impl StrictEncode for u4
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u5
impl StrictEncode for u5
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u6
impl StrictEncode for u6
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u7
impl StrictEncode for u7
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u24
impl StrictEncode for u24
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u40
impl StrictEncode for u40
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u48
impl StrictEncode for u48
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for u56
impl StrictEncode for u56
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for NonZeroU8
impl StrictEncode for NonZeroU8
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for NonZeroU16
impl StrictEncode for NonZeroU16
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for NonZeroU32
impl StrictEncode for NonZeroU32
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for NonZeroU64
impl StrictEncode for NonZeroU64
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEncode for NonZeroU128
impl StrictEncode for NonZeroU128
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.