pub trait Basic: Type {
const SIGNATURE_CHAR: char;
const SIGNATURE_STR: &'static str;
// Provided method
fn alignment(format: Format) -> 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.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Basic for AtomicBool
Available on target_has_atomic=8 only.
impl Basic for AtomicBool
Available on
target_has_atomic=8 only.const SIGNATURE_CHAR: char = <bool as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <bool as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicI8
Available on target_has_atomic=8 only.
impl Basic for AtomicI8
Available on
target_has_atomic=8 only.const SIGNATURE_CHAR: char = <i8 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <i8 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicI16
Available on target_has_atomic=16 only.
impl Basic for AtomicI16
Available on
target_has_atomic=16 only.const SIGNATURE_CHAR: char = <i16 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <i16 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicI32
Available on target_has_atomic=32 only.
impl Basic for AtomicI32
Available on
target_has_atomic=32 only.const SIGNATURE_CHAR: char = <i32 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <i32 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicI64
Available on target_has_atomic=64 only.
impl Basic for AtomicI64
Available on
target_has_atomic=64 only.const SIGNATURE_CHAR: char = <i64 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <i64 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicIsize
Available on target_has_atomic=ptr only.
impl Basic for AtomicIsize
Available on
target_has_atomic=ptr only.const SIGNATURE_CHAR: char = <isize as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <isize as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicU8
Available on target_has_atomic=8 only.
impl Basic for AtomicU8
Available on
target_has_atomic=8 only.const SIGNATURE_CHAR: char = <u8 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <u8 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicU16
Available on target_has_atomic=16 only.
impl Basic for AtomicU16
Available on
target_has_atomic=16 only.const SIGNATURE_CHAR: char = <u16 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <u16 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicU32
Available on target_has_atomic=32 only.
impl Basic for AtomicU32
Available on
target_has_atomic=32 only.const SIGNATURE_CHAR: char = <u32 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <u32 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicU64
Available on target_has_atomic=64 only.
impl Basic for AtomicU64
Available on
target_has_atomic=64 only.const SIGNATURE_CHAR: char = <u64 as Basic>::SIGNATURE_CHAR
const SIGNATURE_STR: &'static str = <u64 as Basic>::SIGNATURE_STR
Source§impl Basic for AtomicUsize
Available on target_has_atomic=ptr only.
impl Basic for AtomicUsize
Available on
target_has_atomic=ptr only.