Struct ezno_parser::extractor::ExtractedFunction
source · pub struct ExtractedFunction<T: FunctionBased>(pub FunctionId<T>, pub Span);
Expand description
New type purely for Visitable implementation
Tuple Fields§
§0: FunctionId<T>
§1: Span
Implementations§
source§impl<T: FunctionBased> ExtractedFunction<T>
impl<T: FunctionBased> ExtractedFunction<T>
pub fn get_position(&self) -> Cow<'_, Span>
Trait Implementations§
source§impl<T: Clone + FunctionBased> Clone for ExtractedFunction<T>
impl<T: Clone + FunctionBased> Clone for ExtractedFunction<T>
source§fn clone(&self) -> ExtractedFunction<T>
fn clone(&self) -> ExtractedFunction<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 + FunctionBased> Debug for ExtractedFunction<T>
impl<T: Debug + FunctionBased> Debug for ExtractedFunction<T>
source§impl From<ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for Declaration
impl From<ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for Declaration
source§fn from(item: ExtractedFunction<StatementFunctionBase>) -> Declaration
fn from(item: ExtractedFunction<StatementFunctionBase>) -> Declaration
Converts to this type from the input type.
source§impl<T: PartialEq + FunctionBased> PartialEq<ExtractedFunction<T>> for ExtractedFunction<T>
impl<T: PartialEq + FunctionBased> PartialEq<ExtractedFunction<T>> for ExtractedFunction<T>
source§fn eq(&self, other: &ExtractedFunction<T>) -> bool
fn eq(&self, other: &ExtractedFunction<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: FunctionBased> SelfRustTokenize for ExtractedFunction<T>
impl<T: FunctionBased> SelfRustTokenize for ExtractedFunction<T>
fn append_to_token_stream(&self, _token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
source§impl<'try_into_ref> TryInto<&'try_into_ref ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for &'try_into_ref Declaration
impl<'try_into_ref> TryInto<&'try_into_ref ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for &'try_into_ref Declaration
§type Error = &'try_into_ref Declaration
type Error = &'try_into_ref Declaration
The type returned in the event of a conversion error.
source§fn try_into(
self
) -> Result<&'try_into_ref ExtractedFunction<StatementFunctionBase>, Self::Error>
fn try_into( self ) -> Result<&'try_into_ref ExtractedFunction<StatementFunctionBase>, Self::Error>
Performs the conversion.
source§impl<'try_into_ref> TryInto<&'try_into_ref mut ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for &'try_into_ref mut Declaration
impl<'try_into_ref> TryInto<&'try_into_ref mut ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for &'try_into_ref mut Declaration
§type Error = &'try_into_ref mut Declaration
type Error = &'try_into_ref mut Declaration
The type returned in the event of a conversion error.
source§fn try_into(
self
) -> Result<&'try_into_ref mut ExtractedFunction<StatementFunctionBase>, Self::Error>
fn try_into( self ) -> Result<&'try_into_ref mut ExtractedFunction<StatementFunctionBase>, Self::Error>
Performs the conversion.