fidl_next_codec/wire/
empty_struct.rs1use core::mem::MaybeUninit;
6
7use crate::{Unconstrained, Wire};
8
9#[repr(u8)]
13#[derive(Clone, Copy)]
14pub enum WireEmptyStructPlaceholder {
15 Zero = 0,
17}
18
19unsafe impl Wire for WireEmptyStructPlaceholder {
20 type Owned<'de> = Self;
21
22 #[inline]
23 fn zero_padding(_: &mut MaybeUninit<Self>) {}
24}
25impl Unconstrained for WireEmptyStructPlaceholder {}
26
27impl core::fmt::Debug for WireEmptyStructPlaceholder {
28 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
29 write!(f, "(empty)")
30 }
31}