Skip to main content

Repr

Trait Repr 

Source
pub trait Repr {
    type Inner;

    // Required methods
    fn repr(&self) -> Self::Inner;
    fn from_repr(inner: Self::Inner) -> Self;
}
Expand description

Repr

Internal representation boundary for scalar wrapper types.

Required Associated Types§

Required Methods§

Source

fn repr(&self) -> Self::Inner

Source

fn from_repr(inner: Self::Inner) -> Self

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.

Implementors§