Skip to main content

View

Trait View 

Source
pub trait View {
    // Required method
    fn size_in_bytes(&self) -> Result<usize, Error>;
}
Expand description

Trait implemented by Emboss struct and bitfield views.

Required Methods§

Source

fn size_in_bytes(&self) -> Result<usize, Error>

Returns the intrinsic layout size of the structure in bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<S: MutStorage, ST: State> View for BdAddrWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for ClassOfDeviceWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for ClockOffsetWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for CommandCompleteEventWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for CommandHeaderWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for CommandPacketWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for EventHeaderWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for EventPacketWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for ImagingMinorDeviceClassBitsWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for LEAdvertisingChannelsWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for LinkKeyWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for MajorServiceClassesWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for OpCodeBitsWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for PacketTypeWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for PeripheralMinorDeviceClassWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for ScanEnableBitsWriter<S, ST>

Source§

impl<S: MutStorage, ST: State> View for VendorDebugEventWriter<S, ST>

Source§

impl<S: MutStorage> View for BdAddrMut<S>

Source§

impl<S: MutStorage> View for ClassOfDeviceMut<S>

Source§

impl<S: MutStorage> View for ClockOffsetMut<S>

Source§

impl<S: MutStorage> View for CommandCompleteEventMut<S>

Source§

impl<S: MutStorage> View for CommandHeaderMut<S>

Source§

impl<S: MutStorage> View for CommandPacketMut<S>

Source§

impl<S: MutStorage> View for EventHeaderMut<S>

Source§

impl<S: MutStorage> View for EventPacketMut<S>

Source§

impl<S: MutStorage> View for ImagingMinorDeviceClassBitsMut<S>

Source§

impl<S: MutStorage> View for LEAdvertisingChannelsMut<S>

Source§

impl<S: MutStorage> View for LinkKeyMut<S>

Source§

impl<S: MutStorage> View for MajorServiceClassesMut<S>

Source§

impl<S: MutStorage> View for OpCodeBitsMut<S>

Source§

impl<S: MutStorage> View for PacketTypeMut<S>

Source§

impl<S: MutStorage> View for PeripheralMinorDeviceClassMut<S>

Source§

impl<S: MutStorage> View for ScanEnableBitsMut<S>

Source§

impl<S: MutStorage> View for VendorDebugEventMut<S>

Source§

impl<S: Storage, ST: State> View for BdAddr<S, ST>

Source§

impl<S: Storage, ST: State> View for ClassOfDevice<S, ST>

Source§

impl<S: Storage, ST: State> View for ClockOffset<S, ST>

Source§

impl<S: Storage, ST: State> View for CommandCompleteEvent<S, ST>

Source§

impl<S: Storage, ST: State> View for CommandHeader<S, ST>

Source§

impl<S: Storage, ST: State> View for CommandPacket<S, ST>

Source§

impl<S: Storage, ST: State> View for EventHeader<S, ST>

Source§

impl<S: Storage, ST: State> View for EventPacket<S, ST>

Source§

impl<S: Storage, ST: State> View for ImagingMinorDeviceClassBits<S, ST>

Source§

impl<S: Storage, ST: State> View for LEAdvertisingChannels<S, ST>

Source§

impl<S: Storage, ST: State> View for LinkKey<S, ST>

Source§

impl<S: Storage, ST: State> View for MajorServiceClasses<S, ST>

Source§

impl<S: Storage, ST: State> View for OpCodeBits<S, ST>

Source§

impl<S: Storage, ST: State> View for PacketType<S, ST>

Source§

impl<S: Storage, ST: State> View for PeripheralMinorDeviceClass<S, ST>

Source§

impl<S: Storage, ST: State> View for ScanEnableBits<S, ST>

Source§

impl<S: Storage, ST: State> View for VendorDebugEvent<S, ST>