pub struct ConstructorDefinitionStatement<'s> {
pub function: &'s Token<'s>,
pub namespaces: Vec<(Identifier<'s>, &'s Token<'s>)>,
pub last_name: Identifier<'s>,
pub last_namespace: &'s Token<'s>,
pub constructor: &'s Token<'s>,
pub definition: FunctionDefinition<'s>,
}Expand description
An out-of-band constructor definition statement.
Grammar: function (Identifier ::)+ constructor FunctionDefinition
Fields§
§function: &'s Token<'s>§namespaces: Vec<(Identifier<'s>, &'s Token<'s>)>§last_name: Identifier<'s>§last_namespace: &'s Token<'s>§constructor: &'s Token<'s>§definition: FunctionDefinition<'s>Trait Implementations§
Source§impl<'s> Clone for ConstructorDefinitionStatement<'s>
impl<'s> Clone for ConstructorDefinitionStatement<'s>
Source§fn clone(&self) -> ConstructorDefinitionStatement<'s>
fn clone(&self) -> ConstructorDefinitionStatement<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'s> Freeze for ConstructorDefinitionStatement<'s>
impl<'s> RefUnwindSafe for ConstructorDefinitionStatement<'s>
impl<'s> Send for ConstructorDefinitionStatement<'s>
impl<'s> Sync for ConstructorDefinitionStatement<'s>
impl<'s> Unpin for ConstructorDefinitionStatement<'s>
impl<'s> UnwindSafe for ConstructorDefinitionStatement<'s>
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