Trait modbus_mapping::codec::Decode
source · pub trait Decode: Sized {
// Required methods
fn from_be_words(words: &[Word]) -> Result<Self, WordsCountError>;
fn from_le_words(words: &[Word]) -> Result<Self, WordsCountError>;
}
Expand description
Decode a value from Big or Little Endian-ordered Word
s.
Required Methods§
fn from_be_words(words: &[Word]) -> Result<Self, WordsCountError>
fn from_le_words(words: &[Word]) -> Result<Self, WordsCountError>
Object Safety§
This trait is not object safe.