#[repr(C)]pub struct Unit {}
Trait Implementations§
Source§impl EncodableOption for Box<Unit>
impl EncodableOption for Box<Unit>
Source§type EncodedOption = WireBox<WireUnit>
type EncodedOption = WireBox<WireUnit>
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<Unit>
impl<___E> EncodeOption<___E> for Box<Unit>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more