pub enum DefaultDecl {
FnDecl(FnDecl),
ClassDecl(ClassDecl),
}Expand description
Variants§
Trait Implementations§
Source§impl AstNode for DefaultDecl
impl AstNode for DefaultDecl
Source§impl Clone for DefaultDecl
impl Clone for DefaultDecl
Source§fn clone(&self) -> DefaultDecl
fn clone(&self) -> DefaultDecl
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 moreSource§impl Debug for DefaultDecl
impl Debug for DefaultDecl
Source§impl Display for DefaultDecl
impl Display for DefaultDecl
Source§impl From<ClassDecl> for DefaultDecl
impl From<ClassDecl> for DefaultDecl
Source§fn from(node: ClassDecl) -> DefaultDecl
fn from(node: ClassDecl) -> DefaultDecl
Converts to this type from the input type.
Source§impl From<FnDecl> for DefaultDecl
impl From<FnDecl> for DefaultDecl
Source§fn from(node: FnDecl) -> DefaultDecl
fn from(node: FnDecl) -> DefaultDecl
Converts to this type from the input type.
Source§impl Hash for DefaultDecl
impl Hash for DefaultDecl
Source§impl PartialEq for DefaultDecl
impl PartialEq for DefaultDecl
impl Eq for DefaultDecl
impl StructuralPartialEq for DefaultDecl
Auto Trait Implementations§
impl Freeze for DefaultDecl
impl RefUnwindSafe for DefaultDecl
impl Send for DefaultDecl
impl Sync for DefaultDecl
impl Unpin for DefaultDecl
impl UnwindSafe for DefaultDecl
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