pub trait PrimitiveLike: Sized {
// Required methods
fn into_primitive(self) -> Primitive;
fn try_from_primitive(primitive: Primitive) -> Result<Self, Primitive>;
}Expand description
Represents some data that can be converted to and from a Primitive
Required Methods§
Sourcefn into_primitive(self) -> Primitive
fn into_primitive(self) -> Primitive
Consumes this data, converting it into an abstract Primitive
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.