pub struct PacketField {
pub start_bit: u32,
pub end_bit: u32,
pub label: String,
}Expand description
A single field in a packet diagram.
Both start_bit and end_bit are inclusive bit indices (0-based).
For single-bit fields, end_bit == start_bit.
Fields§
§start_bit: u32The inclusive start bit (0-based).
end_bit: u32The inclusive end bit (0-based). Equal to start_bit for single-bit fields.
label: StringThe display label for this field.
Implementations§
Trait Implementations§
Source§impl Clone for PacketField
impl Clone for PacketField
Source§fn clone(&self) -> PacketField
fn clone(&self) -> PacketField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketField
impl Debug for PacketField
Source§impl PartialEq for PacketField
impl PartialEq for PacketField
Source§fn eq(&self, other: &PacketField) -> bool
fn eq(&self, other: &PacketField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PacketField
impl StructuralPartialEq for PacketField
Auto Trait Implementations§
impl Freeze for PacketField
impl RefUnwindSafe for PacketField
impl Send for PacketField
impl Sync for PacketField
impl Unpin for PacketField
impl UnsafeUnpin for PacketField
impl UnwindSafe for PacketField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more