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>
Source§type Header = FunctionHeader
type Header = FunctionHeader
Includes a keyword and/or modifiers
Source§type LeadingParameter = Option<ThisParameter>
type LeadingParameter = Option<ThisParameter>
Cfg to make up for the fact
serde_derive
does not use syn_helpers
Source§type ParameterVisibility = ()
type ParameterVisibility = ()
Cfg to make up for the fact
serde_derive
does not use syn_helpers
Source§type Body = <T as ExpressionOrStatementPosition>::FunctionBody
type Body = <T as ExpressionOrStatementPosition>::FunctionBody
The body of the function
fn header_and_name_from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<(HeadingAndPosition<Self>, Self::Name)>
fn header_and_name_to_string_from_buffer<U: ToString>( buf: &mut U, header: &Self::Header, name: &Self::Name, options: &ToStringOptions, local: LocalToStringInformation, )
fn visit_name<TData>( name: &Self::Name, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, _options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
fn visit_name_mut<TData>( name: &mut Self::Name, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, _options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
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<Self::LeadingParameter, Self::ParameterVisibility>>
fn parameters_from_reader<T: ToString>( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<FunctionParameters<Self::LeadingParameter, Self::ParameterVisibility>>
For [
crate::ArrowFunction
]Source§fn parameters_to_string_from_buffer<T: ToString>(
buf: &mut T,
parameters: &FunctionParameters<Self::LeadingParameter, Self::ParameterVisibility>,
options: &ToStringOptions,
local: LocalToStringInformation,
)
fn parameters_to_string_from_buffer<T: ToString>( buf: &mut T, parameters: &FunctionParameters<Self::LeadingParameter, Self::ParameterVisibility>, options: &ToStringOptions, local: LocalToStringInformation, )
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>
impl<T: ExpressionOrStatementPosition> StructuralPartialEq for GeneralFunctionBase<T>
Auto Trait Implementations§
impl<T> Freeze for GeneralFunctionBase<T>
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