pub trait Basic: Type {
const SIGNATURE_CHAR: char;
const SIGNATURE_STR: &'static str;
// Required method
fn alignment(format: EncodingFormat) -> usize;
}
Expand description
Trait for basic types.
All basic types are also Type
implementers.
Required Associated Constants§
Sourceconst SIGNATURE_CHAR: char
const SIGNATURE_CHAR: char
The type signature, as a character.
Sourceconst SIGNATURE_STR: &'static str
const SIGNATURE_STR: &'static str
The type signature, as a string.
Required Methods§
Sourcefn alignment(format: EncodingFormat) -> usize
fn alignment(format: EncodingFormat) -> usize
The required padding alignment for the given format.
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.