Type Alias ezno_parser::expressions::ExpressionFunctionBase
source · pub type ExpressionFunctionBase = GeneralFunctionBase<ExpressionPosition>;Aliased Type§
struct ExpressionFunctionBase(/* private fields */);Trait Implementations§
source§impl<T: Clone + ExpressionOrStatementPosition> Clone for GeneralFunctionBase<T>
impl<T: Clone + ExpressionOrStatementPosition> Clone for GeneralFunctionBase<T>
source§fn clone(&self) -> GeneralFunctionBase<T>
fn clone(&self) -> GeneralFunctionBase<T>
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<T: Debug + ExpressionOrStatementPosition> Debug for GeneralFunctionBase<T>
impl<T: Debug + ExpressionOrStatementPosition> Debug for GeneralFunctionBase<T>
source§impl<T: ExpressionOrStatementPosition> FunctionBased for GeneralFunctionBase<T>
impl<T: ExpressionOrStatementPosition> FunctionBased for GeneralFunctionBase<T>
§type Header = FunctionHeader
type Header = FunctionHeader
Includes a keyword and/or modifiers
§type Name = <T as ExpressionOrStatementPosition>::Name
type Name = <T as ExpressionOrStatementPosition>::Name
A name of the function
fn header_and_name_from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, settings: &ParseOptions ) -> ParseResult<(Self::Header, Self::Name)>
fn header_and_name_to_string_from_buffer<U: ToString>( buf: &mut U, header: &Self::Header, name: &Self::Name, settings: &ToStringOptions, depth: u8 )
fn header_left(header: &Self::Header) -> Option<&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, TokenStart>,
state: &mut ParsingState,
settings: &ParseOptions
) -> ParseResult<FunctionParameters>
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
)
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
)
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>
impl<T: Hash + ExpressionOrStatementPosition> Hash for GeneralFunctionBase<T>
source§impl<T: PartialEq + ExpressionOrStatementPosition> PartialEq<GeneralFunctionBase<T>> for GeneralFunctionBase<T>
impl<T: PartialEq + ExpressionOrStatementPosition> PartialEq<GeneralFunctionBase<T>> for GeneralFunctionBase<T>
source§fn eq(&self, other: &GeneralFunctionBase<T>) -> bool
fn eq(&self, other: &GeneralFunctionBase<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.