pub struct Method<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub is_static: bool,
pub ty: FuncType<'a>,
}
Expand description
Represents a resource method in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the method.
id: Ident<'a>
The identifier of the method.
is_static: bool
Wether or not the method is static.
ty: FuncType<'a>
The function type of the method.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Method<'a>
impl<'a> RefUnwindSafe for Method<'a>
impl<'a> Send for Method<'a>
impl<'a> Sync for Method<'a>
impl<'a> Unpin for Method<'a>
impl<'a> UnwindSafe for Method<'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