pub type WithMetadata<T, P = <T as PrefixTypeTrait>::PrefixFields> = WithMetadata_<T, P>;Expand description
Alias for WithMetadata_
that defaults to passing <T as PrefixTypeTrait>::PrefixFields
as the second type parameter.
WithMetadata_ can’t have that defaulted type parameter,
because T: PrefixTypeTrait is an overly restrictive bound in some cases.
Aliased Type§
#[repr(C)]pub struct WithMetadata<T, P = <T as PrefixTypeTrait>::PrefixFields> {
pub value: AlignToUsize<T>,
/* private fields */
}Fields§
§value: AlignToUsize<T>The wrapped value.