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::ReadValue>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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