Struct SDR

Source
pub struct SDR {
Show 20 fields pub head_num: U1, pub site_grp: U1, pub site_cnt: U1, pub site_num: KxU1, pub hand_typ: Cn, pub hand_id: Cn, pub card_typ: Cn, pub card_id: Cn, pub load_typ: Cn, pub load_id: Cn, pub dib_typ: Cn, pub dib_id: Cn, pub cabl_typ: Cn, pub cabl_id: Cn, pub cont_typ: Cn, pub cont_id: Cn, pub lasr_typ: Cn, pub lasr_id: Cn, pub extr_typ: Cn, pub extr_id: Cn,
}

Fields§

§head_num: U1§site_grp: U1§site_cnt: U1§site_num: KxU1§hand_typ: Cn§hand_id: Cn§card_typ: Cn§card_id: Cn§load_typ: Cn§load_id: Cn§dib_typ: Cn§dib_id: Cn§cabl_typ: Cn§cabl_id: Cn§cont_typ: Cn§cont_id: Cn§lasr_typ: Cn§lasr_id: Cn§extr_typ: Cn§extr_id: Cn

Implementations§

Source§

impl SDR

Source

pub fn new() -> Self

Source

pub fn read_from_bytes(&mut self, raw_data: &[u8], _order: &ByteOrder)

Trait Implementations§

Source§

impl Clone for SDR

Source§

fn clone(&self) -> SDR

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SDR

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SDR

Source§

fn default() -> Self

Return SDR { head_num: Default::default(), site_grp: Default::default(), site_cnt: Default::default(), site_num: Default::default(), hand_typ: Default::default(), hand_id: Default::default(), card_typ: Default::default(), card_id: Default::default(), load_typ: Default::default(), load_id: Default::default(), dib_typ: Default::default(), dib_id: Default::default(), cabl_typ: Default::default(), cabl_id: Default::default(), cont_typ: Default::default(), cont_id: Default::default(), lasr_typ: Default::default(), lasr_id: Default::default(), extr_typ: Default::default(), extr_id: Default::default() }

Source§

impl PartialEq for SDR

Source§

fn eq(&self, other: &SDR) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for SDR

Source§

impl StructuralPartialEq for SDR

Auto Trait Implementations§

§

impl Freeze for SDR

§

impl RefUnwindSafe for SDR

§

impl Send for SDR

§

impl Sync for SDR

§

impl Unpin for SDR

§

impl UnwindSafe for SDR

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.