pub struct Mapping {
pub space: i32,
pub offset: u32,
pub length_words: u32,
pub bit_index: u32,
pub byte_order: i32,
pub word_order: i32,
pub sign_magnitude: bool,
pub stride_words: u32,
pub model_relative_offset: u32,
pub composed: Option<Box<ComposedMapping>>,
pub allowed_function_codes: Vec<u32>,
pub string_encoding: Option<StringEncoding>,
}Expand description
§9, §14, §14.1 Physical location and encoding of a point’s raw data.
Fields§
§space: i32§offset: u32§length_words: u32§bit_index: u32§byte_order: i32§word_order: i32§sign_magnitude: boolv0.4 — sign-magnitude instead of two’s complement
stride_words: u32v0.4 — repeating-array element stride (§14.1)
model_relative_offset: u32v0.4 — offset within a discovered model (§7.3)
composed: Option<Box<ComposedMapping>>§allowed_function_codes: Vec<u32>§7.2
string_encoding: Option<StringEncoding>§15
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn space(&self) -> AddressSpace
pub fn space(&self) -> AddressSpace
Returns the enum value of space, or the default if the field is set to an invalid enum value.
Sourcepub fn set_space(&mut self, value: AddressSpace)
pub fn set_space(&mut self, value: AddressSpace)
Sets space to the provided enum value.
Sourcepub fn byte_order(&self) -> ByteOrder
pub fn byte_order(&self) -> ByteOrder
Returns the enum value of byte_order, or the default if the field is set to an invalid enum value.
Sourcepub fn set_byte_order(&mut self, value: ByteOrder)
pub fn set_byte_order(&mut self, value: ByteOrder)
Sets byte_order to the provided enum value.
Sourcepub fn word_order(&self) -> WordOrder
pub fn word_order(&self) -> WordOrder
Returns the enum value of word_order, or the default if the field is set to an invalid enum value.
Sourcepub fn set_word_order(&mut self, value: WordOrder)
pub fn set_word_order(&mut self, value: WordOrder)
Sets word_order to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for Mapping
impl<'de> Deserialize<'de> for Mapping
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Mapping
impl Message for Mapping
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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