[−][src]Struct async_resol_vbus::specification::DataSetPacketField
An item returned from the DataSetPacketFieldIterator
for each field.
Methods
impl<'a, T> DataSetPacketField<'a, T> where
T: AsRef<[Data]>,
[src]
T: AsRef<[Data]>,
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]
data_set: &'a T,
data_index: usize,
packet_spec: Rc<PacketSpec>,
field_index: usize,
raw_value: Option<i64>
) -> DataSetPacketField<'a, T>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,