pub enum Layout {
Record(&'static [Field]),
Enum(&'static [Ctor]),
Newtype(WireForm),
Host,
}Expand description
What a declared message is made of.
Variants§
Record(&'static [Field])
A record of these fields, in order.
Enum(&'static [Ctor])
An enum of these constructors, in declaration order.
Newtype(WireForm)
A newtype over this form.
Host
A host type, whose values are the host’s tokens.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Layout
impl Freeze for Layout
impl Move for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layoutwhere
&'static [Field]: UnsafeUnpin,
&'static [Ctor]: UnsafeUnpin,
&'static [fn() -> WireForm]: UnsafeUnpin,
&'static str: UnsafeUnpin,
impl UnwindSafe for Layoutwhere
&'static [Field]: UnwindSafe,
&'static [Ctor]: UnwindSafe,
&'static [fn() -> WireForm]: UnwindSafe,
&'static str: UnwindSafe,
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