Expand description
Rust trait for constant #[repr(T)] conversions.
Modules§
- cmp
cmpConstant partial order on inherent representations- float
floatConstant float operations on inherent representations- inherent
inherentDefine an inherent representation- int
intConstant integer operations on inherent representations- num
numConstant numeric operations on inherent representations- ops
opsConstant arithmetic operations on inherent representations
Traits§
- AsRepr
- Trait indicating that
as_repr::<T>()is sound forSelf
Functions§
- as_repr
- Convert a type implementing
AsRepr<T>into aT. - as_
repr_ pinned_ ref - Convert a pinned reference to a type implementing
AsRepr<T>into aPin<&T>. - as_
repr_ pinned_ slice - Convert a pinned slice of a type implementing
AsRepr<T>into aPin<&[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].