[][src]Struct async_resol_vbus::specification::DataSetPacketField

pub struct DataSetPacketField<'a, T> where
    T: 'a + AsRef<[Data]>, 
{ /* fields omitted */ }

An item returned from the DataSetPacketFieldIterator for each field.

Methods

impl<'a, T> DataSetPacketField<'a, T> where
    T: AsRef<[Data]>, 
[src]

pub fn new(
    data_set: &'a T,
    data_index: usize,
    packet_spec: Rc<PacketSpec>,
    field_index: usize,
    raw_value: Option<i64>
) -> DataSetPacketField<'a, T>
[src]

Construct new DataSetPacketField value.

pub fn data_set(&self) -> &[Data][src]

Return the DataSet associated with this field.

pub fn data_index(&self) -> usize[src]

Return the index of the Data associated with this field.

pub fn data(&self) -> &Data[src]

Return the Data associated with this field.

pub fn packet_spec(&self) -> &PacketSpec[src]

Return the PacketSpec associated with this field.

pub fn field_index(&self) -> usize[src]

Return the index of the PacketFieldSpec associated with this field.

pub fn field_spec(&self) -> &PacketFieldSpec[src]

Return the PacketFieldSpec associated with this field.

pub fn packet_id(&self) -> PacketId[src]

Return the PacketId associated with this field.

pub fn field_id(&self) -> &str[src]

Return the field ID associated with this field.

pub fn packet_field_id(&self) -> PacketFieldId[src]

Return the PacketFieldId associated with this field.

pub fn raw_value_i64(&self) -> &Option<i64>[src]

Return the raw value associated with this field.

pub fn raw_value_f64(&self) -> Option<f64>[src]

Return the raw value associated with this field.

pub fn fmt_raw_value(&self, append_unit: bool) -> PacketFieldFormatter[src]

Format the raw value associated with this field.

Trait Implementations

impl<'a, T> Debug for DataSetPacketField<'a, T> where
    T: 'a + AsRef<[Data]> + Debug
[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for DataSetPacketField<'a, T>

impl<'a, T> !Send for DataSetPacketField<'a, T>

impl<'a, T> !Sync for DataSetPacketField<'a, T>

impl<'a, T> Unpin for DataSetPacketField<'a, T>

impl<'a, T> !UnwindSafe for DataSetPacketField<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.