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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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