Struct ezno_parser::functions::GeneralFunctionBase
source · pub struct GeneralFunctionBase<T: ExpressionOrStatementPosition>(/* private fields */);
Expand description
Base for all functions with the function
keyword
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, options: &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, options: &ToStringOptions, depth: u8 )
fn header_left(header: &Self::Header) -> Option<Start>
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,
options: &ParseOptions
) -> ParseResult<FunctionParameters>
fn parameters_from_reader<T: ToString>( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions ) -> ParseResult<FunctionParameters>
For [crate::ArrowFunction]
source§fn parameters_to_string_from_buffer<T: ToString>(
buf: &mut T,
parameters: &FunctionParameters,
options: &ToStringOptions,
depth: u8
)
fn parameters_to_string_from_buffer<T: ToString>( buf: &mut T, parameters: &FunctionParameters, options: &ToStringOptions, depth: u8 )
For [crate::ArrowFunction]
source§fn parameter_body_boundary_token_to_string_from_buffer<T: ToString>(
buf: &mut T,
options: &ToStringOptions
)
fn parameter_body_boundary_token_to_string_from_buffer<T: ToString>( buf: &mut T, options: &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 for GeneralFunctionBase<T>
impl<T: PartialEq + ExpressionOrStatementPosition> PartialEq 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 ==
.impl<T: Eq + ExpressionOrStatementPosition> Eq for GeneralFunctionBase<T>
impl<T: ExpressionOrStatementPosition> StructuralEq for GeneralFunctionBase<T>
impl<T: ExpressionOrStatementPosition> StructuralPartialEq for GeneralFunctionBase<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GeneralFunctionBase<T>where T: RefUnwindSafe,
impl<T> Send for GeneralFunctionBase<T>
impl<T> Sync for GeneralFunctionBase<T>
impl<T> Unpin for GeneralFunctionBase<T>where T: Unpin,
impl<T> UnwindSafe for GeneralFunctionBase<T>where T: UnwindSafe,
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