pub trait StrictEncode: StrictType {
    // Required method
    fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>;

    // Provided method
    fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize> { ... }
}

Required Methods§

source

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

Provided Methods§

source

fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl StrictEncode for bool

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i8

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i16

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i32

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i64

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i128

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u8

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u16

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u32

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u64

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u128

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for ()

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for NonZeroU8

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for NonZeroU16

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for NonZeroU32

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for NonZeroU64

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for NonZeroU128

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for Double

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for Half

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for Oct

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for Quad

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for Single

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for X87DoubleExtended

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i256

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i512

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for i1024

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u4

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u5

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u24

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u256

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u512

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl StrictEncode for u1024

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<A: StrictEncode + Default, B: StrictEncode + Default> StrictEncode for (A, B)

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<A: StrictEncode + Default, B: StrictEncode + Default, C: StrictEncode + Default> StrictEncode for (A, B, C)

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<K: StrictEncode + Ord + Hash + StrictDumb, V: StrictEncode + StrictDumb, const MIN_LEN: usize, const MAX_LEN: usize> StrictEncode for Confined<BTreeMap<K, V>, MIN_LEN, MAX_LEN>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T> StrictEncode for Box<T>
where T: StrictEncode,

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T> StrictEncode for PhantomData<T>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode + Ord + StrictDumb, const MIN_LEN: usize, const MAX_LEN: usize> StrictEncode for Confined<BTreeSet<T>, MIN_LEN, MAX_LEN>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode + Copy + StrictDumb, const LEN: usize> StrictEncode for [T; LEN]

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode + StrictDumb + Copy, const LEN: usize, const REVERSE_STR: bool> StrictEncode for Array<T, LEN, REVERSE_STR>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode + StrictDumb> StrictEncode for Option<T>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode + StrictDumb, const MIN_LEN: usize, const MAX_LEN: usize> StrictEncode for Confined<Vec<T>, MIN_LEN, MAX_LEN>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<T: StrictEncode> StrictEncode for &T

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<const MIN_LEN: usize, const MAX_LEN: usize> StrictEncode for Confined<String, MIN_LEN, MAX_LEN>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

source§

impl<const MIN_LEN: usize, const MAX_LEN: usize> StrictEncode for Confined<AsciiString, MIN_LEN, MAX_LEN>

source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

Implementors§