pub enum TypeDecl {
Class(Class),
Interface(Interface),
Enum(Enum),
Record(Record),
AnnotationType(AnnotationType),
Verbatim(String),
}Expand description
One type declaration.
Variants§
Class(Class)
class Name { ... }
Interface(Interface)
interface Name { ... }
Enum(Enum)
enum Name { ... }
Record(Record)
record Name(..) { ... }
AnnotationType(AnnotationType)
@interface Name { ... } — an annotation type.
Verbatim(String)
@verbatim text at file level, copied into the output unchanged.
OMG IDL 4.2 §8.3.5.1: the annotation’s text “shall be copied
verbatim” into the generated artifact — raw lines, never a
comment. One node per directive, lines split on \n.
Trait Implementations§
impl Eq for TypeDecl
impl StructuralPartialEq for TypeDecl
Auto Trait Implementations§
impl Freeze for TypeDecl
impl RefUnwindSafe for TypeDecl
impl Send for TypeDecl
impl Sync for TypeDecl
impl Unpin for TypeDecl
impl UnsafeUnpin for TypeDecl
impl UnwindSafe for TypeDecl
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