pub struct ResourceDecl<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub methods: Vec<ResourceMethod<'a>>,
}
Expand description
Represents a resource declaration in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the resource.
id: Ident<'a>
The identifier of the resource.
methods: Vec<ResourceMethod<'a>>
The methods of the resource.
Trait Implementations§
Source§impl<'a> Clone for ResourceDecl<'a>
impl<'a> Clone for ResourceDecl<'a>
Source§fn clone(&self) -> ResourceDecl<'a>
fn clone(&self) -> ResourceDecl<'a>
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<'a> Debug for ResourceDecl<'a>
impl<'a> Debug for ResourceDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceDecl<'a>
impl<'a> RefUnwindSafe for ResourceDecl<'a>
impl<'a> Send for ResourceDecl<'a>
impl<'a> Sync for ResourceDecl<'a>
impl<'a> Unpin for ResourceDecl<'a>
impl<'a> UnwindSafe for ResourceDecl<'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