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§

Trait Implementations§

source§

impl<T: Clone + FunctionBased> Clone for ExtractedFunction<T>

source§

fn clone(&self) -> ExtractedFunction<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 + FunctionBased> Debug for ExtractedFunction<T>

source§

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

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

impl From<ExtractedFunction<GeneralFunctionBase<StatementPosition>>> for Declaration

source§

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>

source§

fn eq(&self, other: &ExtractedFunction<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: FunctionBased> SelfRustTokenize for ExtractedFunction<T>

source§

fn append_to_token_stream(&self, _token_stream: &mut TokenStream)

source§

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

§

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>

Performs the conversion.
source§

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

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<&'try_into_ref mut ExtractedFunction<StatementFunctionBase>, Self::Error>

Performs the conversion.
source§

impl<T: FunctionBased + 'static> Visitable for ExtractedFunction<T>where ExtractedFunctions: GetFunction<T>, FunctionBase<T>: Visitable,

source§

fn visit<TData>( &self, visitors: &mut impl VisitorReceiver<TData> + ?Sized, data: &mut TData, settings: &VisitSettings, functions: &mut ExtractedFunctions, chain: &mut Annex<'_, Chain> )

source§

fn visit_mut<TData>( &mut self, visitors: &mut impl VisitorMutReceiver<TData> + ?Sized, data: &mut TData, settings: &VisitSettings, functions: &mut ExtractedFunctions, chain: &mut Annex<'_, Chain> )

source§

impl<T: Eq + FunctionBased> Eq for ExtractedFunction<T>

source§

impl<T: FunctionBased> StructuralEq for ExtractedFunction<T>

source§

impl<T: FunctionBased> StructuralPartialEq for ExtractedFunction<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for ExtractedFunction<T>where T: RefUnwindSafe,

§

impl<T> Send for ExtractedFunction<T>

§

impl<T> Sync for ExtractedFunction<T>

§

impl<T> Unpin for ExtractedFunction<T>where T: Unpin,

§

impl<T> UnwindSafe for ExtractedFunction<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.