Skip to main content

HasRepr

Trait HasRepr 

Source
pub trait HasRepr {
    type ReprType;
}
Expand description

A type which has a corresponding static/owned representation type.

Required Associated Types§

Source

type ReprType

The type containing an equivalent to Self, as an owned struct.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: HasRepr> HasRepr for Option<T>

Implementors§

Source§

impl<O, B> HasRepr for BoxedHeader<O, B>

Available on crate feature alloc only.
Source§

impl<O, B> HasRepr for InlineHeader<O, B>