#[non_exhaustive]pub enum Item {
Enum(EnumDef),
Layout(LayoutDef),
Choice(ChoiceDef),
Dispatch(DispatchDef),
Message(MessageDef),
Verbatim(TokenStream),
}Expand description
One item of a model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enum(EnumDef)
An enumeration.
Layout(LayoutDef)
A fixed-size layout.
Choice(ChoiceDef)
The arms of a Segment::Switch.
Dispatch(DispatchDef)
Bodies selected by an id the enclosing message has already read.
Message(MessageDef)
A variable-length message.
Verbatim(TokenStream)
Rust code copied into the output as is, such as accessors, trait impls and constants.
Refused if it declares a codec, since the model generates those.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Item
impl !Sync for Item
impl Freeze for Item
impl RefUnwindSafe for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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