pub trait Primitive { }
Expand description
A useless(?) trait for all primitive types in Rust.
Implementations on Foreign Types§
impl Primitive for bool
impl Primitive for char
impl Primitive for f32
impl Primitive for f64
impl Primitive for i8
impl Primitive for i16
impl Primitive for i32
impl Primitive for i64
impl Primitive for i128
impl Primitive for isize
impl Primitive for str
impl Primitive for u8
impl Primitive for u16
impl Primitive for u32
impl Primitive for u64
impl Primitive for u128
impl Primitive for ()
impl Primitive for usize
impl<A1, R> Primitive for fn(A1₁, A1₂, …, A1ₙ) -> R
This trait is implemented for function pointers with up to 12 arguments.
impl<R> Primitive for fn() -> R
impl<T1: ?Sized> Primitive for (T1₁, T1₂, …, T1ₙ)
This trait is implemented for tuples up to 12 items long.