Skip to main content

InfallibleRead

Trait InfallibleRead 

Source
pub trait InfallibleRead {
    type ReadValue;

    // Required method
    fn read(&self) -> Self::ReadValue;
}
Expand description

Infallible read operation for views in a verified typestate (IsOk).

Required Associated Types§

Required Methods§

Source

fn read(&self) -> Self::ReadValue

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, Inner> InfallibleRead for EnumView<T, Inner>
where Inner: InfallibleRead, T: TryFromRaw<<Inner as InfallibleRead>::ReadValue>,

Source§

impl<T, Inner> InfallibleRead for EnumViewMut<T, Inner>
where Inner: InfallibleRead, T: TryFromRaw<<Inner as InfallibleRead>::ReadValue>,

Source§

impl<T> InfallibleRead for VirtualField<T>
where T: Copy,

Source§

impl<const BITS: usize, E, S, ST> InfallibleRead for Flag<BITS, E, S, ST>
where E: ByteOrder, S: Storage, ST: IsOk,

Source§

impl<const BITS: usize, E, S, ST> InfallibleRead for Int<BITS, E, S, ST>

Source§

impl<const BITS: usize, E, S, ST> InfallibleRead for UInt<BITS, E, S, ST>

Source§

impl<const BITS: usize, const BIT_OFFSET: usize, E, S, ST> InfallibleRead for BitFlag<BITS, BIT_OFFSET, E, S, ST>
where E: ByteOrder, S: Storage, ST: IsOk,

Source§

impl<const BITS: usize, const BIT_OFFSET: usize, E, S, ST> InfallibleRead for BitInt<BITS, BIT_OFFSET, E, S, ST>
where E: ByteOrder, S: Storage, ST: IsOk, SizeSelector<BITS>: SmallestUInt + SmallestInt<U = <SizeSelector<BITS> as SmallestUInt>::T>,

Source§

impl<const BITS: usize, const BIT_OFFSET: usize, E, S, ST> InfallibleRead for BitUInt<BITS, BIT_OFFSET, E, S, ST>
where E: ByteOrder, S: Storage, ST: IsOk, SizeSelector<BITS>: SmallestUInt,