pub struct MLMacroDef {
pub span: Span,
pub identifier: Ident,
pub args: Option<MLMacroArgs>,
pub defaults: Option<MLMacroDefDefaults>,
pub contents: Vec<PASTNode>,
}Fields§
§span: Span§identifier: Ident§args: Option<MLMacroArgs>§defaults: Option<MLMacroDefDefaults>§contents: Vec<PASTNode>Implementations§
Source§impl MLMacroDef
impl MLMacroDef
pub fn new( span: Span, identifier: Ident, args: Option<MLMacroArgs>, defaults: Option<MLMacroDefDefaults>, contents: Vec<PASTNode>, ) -> Self
Trait Implementations§
Source§impl Clone for MLMacroDef
impl Clone for MLMacroDef
Source§fn clone(&self) -> MLMacroDef
fn clone(&self) -> MLMacroDef
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 Freeze for MLMacroDef
impl RefUnwindSafe for MLMacroDef
impl Send for MLMacroDef
impl Sync for MLMacroDef
impl Unpin for MLMacroDef
impl UnwindSafe for MLMacroDef
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