pub trait IntegerType:
Sized
+ Clone
+ Debug
+ TryFrom<i64>
+ TryFrom<i128>
+ TryInto<i128>
+ Into<Integer>
+ Num
+ CheckedAdd {
const WIDTH: u32;
// Required methods
fn try_from_bytes(input: &[u8], codec: Codec) -> Result<Self, DecodeError>;
fn try_from_signed_bytes(
input: &[u8],
codec: Codec,
) -> Result<Self, DecodeError>;
fn try_from_unsigned_bytes(
input: &[u8],
codec: Codec,
) -> Result<Self, DecodeError>;
}
Required Associated Constants§
Required Methods§
fn try_from_bytes(input: &[u8], codec: Codec) -> Result<Self, DecodeError>
fn try_from_signed_bytes( input: &[u8], codec: Codec, ) -> Result<Self, DecodeError>
fn try_from_unsigned_bytes( input: &[u8], codec: Codec, ) -> Result<Self, DecodeError>
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.