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.
Object Safety§
This trait is not object safe.