pub trait SetOptional<Tag> {
type Value;
// Required methods
fn set(self, _tag: PhantomData<Tag>, value: Self::Value) -> Self;
fn set_optional(
self,
_tag: PhantomData<Tag>,
value: Self::Value,
) -> (Option<Self::Value>, Self);
}Required Associated Types§
Required Methods§
fn set(self, _tag: PhantomData<Tag>, value: Self::Value) -> Self
fn set_optional( self, _tag: PhantomData<Tag>, value: Self::Value, ) -> (Option<Self::Value>, 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.