pub struct PropMethod<'a> {
pub keyword_static: Option<Slice<'a>>,
pub keyword_async: Option<Slice<'a>>,
pub id: PropInitKey<'a>,
pub star: Option<Slice<'a>>,
pub open_paren: Slice<'a>,
pub params: Vec<ListEntry<'a, FuncArg<'a>>>,
pub close_paren: Slice<'a>,
pub body: FuncBody<'a>,
}
Fields
keyword_static: Option<Slice<'a>>
keyword_async: Option<Slice<'a>>
id: PropInitKey<'a>
star: Option<Slice<'a>>
open_paren: Slice<'a>
params: Vec<ListEntry<'a, FuncArg<'a>>>
close_paren: Slice<'a>
body: FuncBody<'a>
Trait Implementations
sourceimpl<'a> Clone for PropMethod<'a>
impl<'a> Clone for PropMethod<'a>
sourcefn clone(&self) -> PropMethod<'a>
fn clone(&self) -> PropMethod<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for PropMethod<'a>
impl<'a> Debug for PropMethod<'a>
sourceimpl<'a> From<PropMethod<'a>> for Func<'a>
impl<'a> From<PropMethod<'a>> for Func<'a>
sourcefn from(other: PropMethod<'a>) -> Self
fn from(other: PropMethod<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> Node for PropMethod<'a>
impl<'a> Node for PropMethod<'a>
fn loc(&self) -> SourceLocation
sourceimpl<'a> PartialEq<PropMethod<'a>> for PropMethod<'a>
impl<'a> PartialEq<PropMethod<'a>> for PropMethod<'a>
sourcefn eq(&self, other: &PropMethod<'a>) -> bool
fn eq(&self, other: &PropMethod<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for PropMethod<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PropMethod<'a>
impl<'a> Send for PropMethod<'a>
impl<'a> Sync for PropMethod<'a>
impl<'a> Unpin for PropMethod<'a>
impl<'a> UnwindSafe for PropMethod<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more