Skip to main content

Crate as_repr_core

Crate as_repr_core 

Source
Expand description

Rust trait for constant #[repr(T)] conversions.

Modules§

cmp
cmp Constant partial order on inherent representations
float
float Constant float operations on inherent representations
inherent
inherent Define an inherent representation
int
int Constant integer operations on inherent representations
num
num Constant numeric operations on inherent representations
ops
ops Constant arithmetic operations on inherent representations

Traits§

AsRepr
Trait indicating that as_repr::<T>() is sound for Self

Functions§

as_repr
Convert a type implementing AsRepr<T> into a T.
as_repr_pinned_ref
Convert a pinned reference to a type implementing AsRepr<T> into a Pin<&T>.
as_repr_pinned_slice
Convert a pinned slice of a type implementing AsRepr<T> into a Pin<&[T]>.
as_repr_ref
Convert a reference to type implementing AsRepr<T> into a &T.
as_repr_slice
Convert a slice of a type implementing AsRepr<T> into a &[T].