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 that allows usage with as_repr()

Functions§

as_repr
Convert a type implementing AsRepr to T.
as_repr_ref
Convert a reference to type implementing AsRepr to &T.
as_repr_slice
Convert a slice of a type implementing AsRepr to &[T].