pub struct Localization(/* private fields */);Expand description
Table 143 — Localization of value 16 bit bitfield parameter definition
§Repr: u16
| Field | Size (bits) | note |
|---|---|---|
| sign | 1 | 0 means comparison without sign. |
| 1 means comparison with sign. | ||
| length | 5 | The value 0x00 shall be used to compare all 4 bytes. |
| All other values shall set the size in bits. | ||
| With 5 bits, the maximal size of a length is 31 bits. | ||
| offset | 10 | Offset on the positive response message from where to |
| extract the data identifier value. |
Implementations§
Source§impl Localization
impl Localization
Source§impl Localization
impl Localization
pub const fn is_sign(&self) -> bool
pub fn sign_set(&mut self, value: bool) -> &mut Self
pub const fn length_value(&self) -> u8
pub fn length_set(&mut self, value: u8) -> &mut Self
pub const fn offset_value(&self) -> u16
pub fn offset_set(&mut self, value: u16) -> &mut Self
Trait Implementations§
Source§impl Clone for Localization
impl Clone for Localization
Source§fn clone(&self) -> Localization
fn clone(&self) -> Localization
Returns a duplicate of the value. Read more
1.0.0 · 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 Localization
impl Debug for Localization
Source§impl Default for Localization
impl Default for Localization
Source§impl From<Localization> for u16
impl From<Localization> for u16
Source§fn from(v: Localization) -> u16
fn from(v: Localization) -> u16
Converts to this type from the input type.
Source§impl From<u16> for Localization
impl From<u16> for Localization
impl Copy for Localization
Auto Trait Implementations§
impl Freeze for Localization
impl RefUnwindSafe for Localization
impl Send for Localization
impl Sync for Localization
impl Unpin for Localization
impl UnwindSafe for Localization
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