Struct moore_svlog::ast::ClassDeclData [−][src]
pub struct ClassDeclData<'a> {
pub virt: bool,
pub lifetime: Lifetime,
pub name: Spanned<Name>,
pub params: Vec<Node<'a, ParamDeclData<'a>>, Global>,
pub extends: Option<(Node<'a, TypeData<'a>>, Vec<CallArg<'a>, Global>)>,
pub impls: Vec<Spanned<Name>, Global>,
pub items: Vec<ClassItem<'a>, Global>,
}
Expand description
A class declaration.
Fields
virt: bool
lifetime: Lifetime
name: Spanned<Name>
params: Vec<Node<'a, ParamDeclData<'a>>, Global>
extends: Option<(Node<'a, TypeData<'a>>, Vec<CallArg<'a>, Global>)>
impls: Vec<Spanned<Name>, Global>
items: Vec<ClassItem<'a>, Global>
Trait Implementations
Get this node’s name, or None
if it does not have one.
Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Apply a function to each child node.
Apply a function to this node.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ClassDeclData<'a>
impl<'a> Send for ClassDeclData<'a>
impl<'a> Sync for ClassDeclData<'a>
impl<'a> Unpin for ClassDeclData<'a>
impl<'a> !UnwindSafe for ClassDeclData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more