pub struct MethodDefinition {
pub kind: MethodKind,
pub name: IDENTIFIER,
pub params: Vec<IDENTIFIER>,
pub body: BlockStatement,
pub span: Span,
}Fields§
§kind: MethodKind§name: IDENTIFIER§params: Vec<IDENTIFIER>§body: BlockStatement§span: SpanTrait Implementations§
Source§impl Clone for MethodDefinition
impl Clone for MethodDefinition
Source§fn clone(&self) -> MethodDefinition
fn clone(&self) -> MethodDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodDefinition
impl Debug for MethodDefinition
Source§impl<'de> Deserialize<'de> for MethodDefinition
impl<'de> Deserialize<'de> for MethodDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MethodDefinition
impl Display for MethodDefinition
impl Eq for MethodDefinition
Source§impl Hash for MethodDefinition
impl Hash for MethodDefinition
Source§impl PartialEq for MethodDefinition
impl PartialEq for MethodDefinition
Source§impl Serialize for MethodDefinition
impl Serialize for MethodDefinition
impl StructuralPartialEq for MethodDefinition
Auto Trait Implementations§
impl Freeze for MethodDefinition
impl RefUnwindSafe for MethodDefinition
impl Send for MethodDefinition
impl Sync for MethodDefinition
impl Unpin for MethodDefinition
impl UnsafeUnpin for MethodDefinition
impl UnwindSafe for MethodDefinition
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