pub trait ManagedVecItemPayloadAdd<Rhs>: ManagedVecItemPayloadwhere
Rhs: ManagedVecItemPayload,{
type Output: ManagedVecItemPayload;
// Required methods
fn split_from_add(payload: &Self::Output) -> (&Self, &Rhs);
fn split_mut_from_add(payload: &mut Self::Output) -> (&mut Self, &mut Rhs);
}
Expand description
Describes concatantion of smaller payloads into a larger one.
There is no runtime implementation, just a type-level addition.
Implemented via macros, because generic const expressions are currently unstable.
Required Associated Types§
Required Methods§
fn split_from_add(payload: &Self::Output) -> (&Self, &Rhs)
fn split_mut_from_add(payload: &mut Self::Output) -> (&mut Self, &mut Rhs)
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.