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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.