pub struct ObjectLiteralMethodBase;
Trait Implementations§
source§impl Clone for ObjectLiteralMethodBase
impl Clone for ObjectLiteralMethodBase
source§fn clone(&self) -> ObjectLiteralMethodBase
fn clone(&self) -> ObjectLiteralMethodBase
Returns a copy 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 Debug for ObjectLiteralMethodBase
impl Debug for ObjectLiteralMethodBase
source§impl FunctionBased for ObjectLiteralMethodBase
impl FunctionBased for ObjectLiteralMethodBase
§type Header = GetSetGeneratorOrNone
type Header = GetSetGeneratorOrNone
Includes a keyword and/or modifiers
§type Name = WithComment<PropertyKey>
type Name = WithComment<PropertyKey>
A name of the function
fn get_chain_variable(_this: &FunctionBase<Self>) -> ChainVariable
fn header_and_name_from_reader( reader: &mut impl TokenReader<TSXToken, Span>, state: &mut ParsingState, settings: &ParseSettings ) -> ParseResult<(Self::Header, Self::Name)>
fn header_and_name_to_string_from_buffer<T: ToString>( buf: &mut T, header: &Self::Header, name: &Self::Name, settings: &ToStringSettingsAndData, depth: u8 )
fn header_left(header: &Self::Header) -> Option<Cow<'_, Span>>
source§fn get_parameter_body_boundary_token() -> Option<TSXToken>
fn get_parameter_body_boundary_token() -> Option<TSXToken>
For [crate::ArrowFunction]
source§fn parameters_from_reader<T: ToString>(
reader: &mut impl TokenReader<TSXToken, Span>,
state: &mut ParsingState,
settings: &ParseSettings
) -> ParseResult<FunctionParameters>
fn parameters_from_reader<T: ToString>( reader: &mut impl TokenReader<TSXToken, Span>, state: &mut ParsingState, settings: &ParseSettings ) -> ParseResult<FunctionParameters>
For [crate::ArrowFunction]
source§fn parameters_to_string_from_buffer<T: ToString>(
buf: &mut T,
parameters: &FunctionParameters,
settings: &ToStringSettingsAndData,
depth: u8
)
fn parameters_to_string_from_buffer<T: ToString>( buf: &mut T, parameters: &FunctionParameters, settings: &ToStringSettingsAndData, depth: u8 )
For [crate::ArrowFunction]
source§fn parameter_body_boundary_token_to_string_from_buffer<T: ToString>(
buf: &mut T,
settings: &ToStringSettingsAndData
)
fn parameter_body_boundary_token_to_string_from_buffer<T: ToString>( buf: &mut T, settings: &ToStringSettingsAndData )
For [crate::ArrowFunction]
source§impl GetFunction<ObjectLiteralMethodBase> for ExtractedFunctions
impl GetFunction<ObjectLiteralMethodBase> for ExtractedFunctions
fn get_function_ref( &self, id: FunctionId<ObjectLiteralMethodBase> ) -> Option<&FunctionBase<ObjectLiteralMethodBase>>
fn get_function( &mut self, id: FunctionId<ObjectLiteralMethodBase> ) -> FunctionBase<ObjectLiteralMethodBase>
fn insert_function(&mut self, func: FunctionBase<ObjectLiteralMethodBase>)
fn new_extracted_function( &mut self, func: FunctionBase<T> ) -> ExtractedFunction<T>
source§impl Hash for ObjectLiteralMethodBase
impl Hash for ObjectLiteralMethodBase
source§impl PartialEq<ObjectLiteralMethodBase> for ObjectLiteralMethodBase
impl PartialEq<ObjectLiteralMethodBase> for ObjectLiteralMethodBase
source§fn eq(&self, other: &ObjectLiteralMethodBase) -> bool
fn eq(&self, other: &ObjectLiteralMethodBase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.