pub type ExpressionFunctionBase = GeneralFunctionBase<ExpressionPosition>;

Aliased Type§

struct ExpressionFunctionBase(/* private fields */);

Trait Implementations§

source§

impl<T: Clone + ExpressionOrStatementPosition> Clone for GeneralFunctionBase<T>

source§

fn clone(&self) -> GeneralFunctionBase<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + ExpressionOrStatementPosition> Debug for GeneralFunctionBase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: ExpressionOrStatementPosition> FunctionBased for GeneralFunctionBase<T>

§

type Body = Block

The body of the function
§

type Header = FunctionHeader

Includes a keyword and/or modifiers
§

type Name = <T as ExpressionOrStatementPosition>::Name

A name of the function
source§

fn header_and_name_from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, settings: &ParseOptions ) -> ParseResult<(Self::Header, Self::Name)>

source§

fn header_and_name_to_string_from_buffer<U: ToString>( buf: &mut U, header: &Self::Header, name: &Self::Name, settings: &ToStringOptions, depth: u8 )

source§

fn header_left(header: &Self::Header) -> Option<&Span>

source§

fn get_parameter_body_boundary_token() -> Option<TSXToken>

For [crate::ArrowFunction]
source§

fn parameters_from_reader<T: ToString>( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, settings: &ParseOptions ) -> ParseResult<FunctionParameters>

For [crate::ArrowFunction]
source§

fn parameters_to_string_from_buffer<T: ToString>( buf: &mut T, parameters: &FunctionParameters, settings: &ToStringOptions, depth: u8 )

For [crate::ArrowFunction]
source§

fn parameter_body_boundary_token_to_string_from_buffer<T: ToString>( buf: &mut T, settings: &ToStringOptions )

For [crate::ArrowFunction]
source§

impl<T: Hash + ExpressionOrStatementPosition> Hash for GeneralFunctionBase<T>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: PartialEq + ExpressionOrStatementPosition> PartialEq<GeneralFunctionBase<T>> for GeneralFunctionBase<T>

source§

fn eq(&self, other: &GeneralFunctionBase<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: Eq + ExpressionOrStatementPosition> Eq for GeneralFunctionBase<T>

source§

impl<T: ExpressionOrStatementPosition> StructuralEq for GeneralFunctionBase<T>

source§

impl<T: ExpressionOrStatementPosition> StructuralPartialEq for GeneralFunctionBase<T>