Enum rustc_parse::parser::ParseNtResult
source · pub enum ParseNtResult<NtType> {
Tt(TokenTree),
Nt(NtType),
}
Variants§
Implementations§
source§impl<T> ParseNtResult<T>
impl<T> ParseNtResult<T>
pub fn map_nt<F, U>(self, f: F) -> ParseNtResult<U>where
F: FnMut(T) -> U,
Trait Implementations§
source§impl<NtType: Clone> Clone for ParseNtResult<NtType>
impl<NtType: Clone> Clone for ParseNtResult<NtType>
source§fn clone(&self) -> ParseNtResult<NtType>
fn clone(&self) -> ParseNtResult<NtType>
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 moreAuto Trait Implementations§
impl<NtType> DynSend for ParseNtResult<NtType>where
NtType: DynSend,
impl<NtType> DynSync for ParseNtResult<NtType>where
NtType: DynSync,
impl<NtType> Freeze for ParseNtResult<NtType>where
NtType: Freeze,
impl<NtType> !RefUnwindSafe for ParseNtResult<NtType>
impl<NtType> !Send for ParseNtResult<NtType>
impl<NtType> !Sync for ParseNtResult<NtType>
impl<NtType> Unpin for ParseNtResult<NtType>where
NtType: Unpin,
impl<NtType> !UnwindSafe for ParseNtResult<NtType>
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
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.