Trait Primitive

Source
pub trait Primitive { }
Expand description

A useless(?) trait for all primitive types in Rust.

Implementations on Foreign Types§

Source§

impl Primitive for bool

Source§

impl Primitive for char

Source§

impl Primitive for f32

Source§

impl Primitive for f64

Source§

impl Primitive for i8

Source§

impl Primitive for i16

Source§

impl Primitive for i32

Source§

impl Primitive for i64

Source§

impl Primitive for i128

Source§

impl Primitive for isize

Source§

impl Primitive for str

Source§

impl Primitive for u8

Source§

impl Primitive for u16

Source§

impl Primitive for u32

Source§

impl Primitive for u64

Source§

impl Primitive for u128

Source§

impl Primitive for ()

Source§

impl Primitive for usize

Source§

impl<A1, R> Primitive for fn(A1₁, A1₂, …, A1ₙ) -> R

This trait is implemented for function pointers with up to 12 arguments.

Source§

impl<R> Primitive for fn() -> R

Source§

impl<T1: ?Sized> Primitive for (T1₁, T1₂, …, T1ₙ)

This trait is implemented for tuples up to 12 items long.

Source§

impl<T> Primitive for [T]

Source§

impl<T: ?Sized> Primitive for *const T

Source§

impl<T: ?Sized> Primitive for *mut T

Source§

impl<T: ?Sized> Primitive for &T

Source§

impl<T: ?Sized> Primitive for &mut T

Source§

impl<const N: usize, T> Primitive for [T; N]

Implementors§