pub trait Branded {
type Inner;
// Required methods
fn inner(&self) -> &Self::Inner;
fn into_inner(self) -> Self::Inner;
}Expand description
A trait for types that are a brand of some inner type.
This trait is not used for specific features internally, but you may use it if you want to write generic code over all branded types.
Required Associated Types§
Required Methods§
Sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert the branded type to the inner type.