Enum wac_parser::ResourceMethod
source · pub enum ResourceMethod<'a> {
Constructor(Constructor<'a>),
Method(Method<'a>),
}Expand description
Represents a resource method in the AST.
Variants§
Constructor(Constructor<'a>)
The method is a constructor.
Method(Method<'a>)
The method is a instance or static method.
Trait Implementations§
source§impl<'a> Clone for ResourceMethod<'a>
impl<'a> Clone for ResourceMethod<'a>
source§fn clone(&self) -> ResourceMethod<'a>
fn clone(&self) -> ResourceMethod<'a>
Returns a copy 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<'a> Debug for ResourceMethod<'a>
impl<'a> Debug for ResourceMethod<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceMethod<'a>
impl<'a> RefUnwindSafe for ResourceMethod<'a>
impl<'a> Send for ResourceMethod<'a>
impl<'a> Sync for ResourceMethod<'a>
impl<'a> Unpin for ResourceMethod<'a>
impl<'a> UnwindSafe for ResourceMethod<'a>
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