Trait fidl_next::encode::EncodeOption
source · pub trait EncodeOption<E: ?Sized>: EncodableOption {
// Required method
fn encode_option(
this: Option<&mut Self>,
encoder: &mut E,
slot: Slot<'_, Self::EncodedOption<'_>>,
) -> Result<(), EncodeError>;
}
Expand description
Encodes an optional value.
Required Methods§
sourcefn encode_option(
this: Option<&mut Self>,
encoder: &mut E,
slot: Slot<'_, Self::EncodedOption<'_>>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut E, slot: Slot<'_, Self::EncodedOption<'_>>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and slot.
Object Safety§
This trait is not object safe.