pub trait EncodableInteger:
Copy
+ Clone
+ Sized
+ Debug
+ PartialEq
+ Eq
+ Send
+ Sync
+ WithOrWithoutSerde {
// Required methods
fn n(self) -> usize;
fn write_be(self, out: impl AsMut<[u8]>) -> Result<()>;
fn write_le(self, out: impl AsMut<[u8]>) -> Result<()>;
}
Expand description
An integer that is encodable.
Required Methods§
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.