pub enum Decl {
Namespace(Namespace),
Class(Class),
Enum(Enum),
Alias(Alias),
Function(Function),
Variable(Variable),
Template(Template),
Comment(Doc),
Verbatim(String),
Forward {
is_struct: bool,
name: Ident,
},
}Expand description
One declaration.
Variants§
Namespace(Namespace)
namespace name { ... }
Class(Class)
class Name { ... }; or struct Name { ... };
Enum(Enum)
enum class Name : T { ... };
Alias(Alias)
using Name = ...;
Function(Function)
A function at namespace scope.
Variable(Variable)
A variable at namespace scope.
Template(Template)
template <..> <decl>
Comment(Doc)
A comment standing on its own.
Verbatim(String)
@verbatim text, 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.
Forward
A forward declaration: class Name;
Trait Implementations§
impl Eq for Decl
impl StructuralPartialEq for Decl
Auto Trait Implementations§
impl Freeze for Decl
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnsafeUnpin for Decl
impl UnwindSafe for Decl
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