Enum AstDeclaration
pub enum AstDeclaration {
Variable(AstVariableDeclaration),
Function(AstFunction),
TypeAlias(AstTypeAliasDeclaration),
}Expand description
A declaration introduces a name and is either a variable or function declaration.
Variants§
Implementations§
§impl AstDeclaration
impl AstDeclaration
pub fn get_declared_type(&self) -> &AstDeclaredType
pub fn get_declared_type(&self) -> &AstDeclaredType
Gets the declared type of the declaration.
pub fn unique_name(&self) -> &AstUniqueName
pub fn unique_name(&self) -> &AstUniqueName
Gets the unique name of the declaration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstDeclaration
impl RefUnwindSafe for AstDeclaration
impl Send for AstDeclaration
impl Sync for AstDeclaration
impl Unpin for AstDeclaration
impl UnwindSafe for AstDeclaration
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