pub struct ItemRef<Id> {
id: Id,
generics: BoxedArgs,
}
Fields§
§id: Id
§generics: BoxedArgs
Trait Implementations§
Source§impl From<ItemRef<GlobalDeclId>> for GlobalDeclRef
impl From<ItemRef<GlobalDeclId>> for GlobalDeclRef
Source§fn from(item: ItemRef<GlobalDeclId>) -> Self
fn from(item: ItemRef<GlobalDeclId>) -> Self
Converts to this type from the input type.
Source§impl From<ItemRef<TraitDeclId>> for TraitDeclRef
impl From<ItemRef<TraitDeclId>> for TraitDeclRef
Source§fn from(item: ItemRef<TraitDeclId>) -> Self
fn from(item: ItemRef<TraitDeclId>) -> Self
Converts to this type from the input type.
Source§impl From<ItemRef<TraitImplId>> for TraitImplRef
impl From<ItemRef<TraitImplId>> for TraitImplRef
Source§fn from(item: ItemRef<TraitImplId>) -> Self
fn from(item: ItemRef<TraitImplId>) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ItemRef<AnyTransId>> for FunDeclRef
impl TryFrom<ItemRef<AnyTransId>> for FunDeclRef
Source§impl TryFrom<ItemRef<AnyTransId>> for GlobalDeclRef
impl TryFrom<ItemRef<AnyTransId>> for GlobalDeclRef
Source§impl TryFrom<ItemRef<AnyTransId>> for MaybeBuiltinFunDeclRef
impl TryFrom<ItemRef<AnyTransId>> for MaybeBuiltinFunDeclRef
Source§impl TryFrom<ItemRef<AnyTransId>> for TraitDeclRef
impl TryFrom<ItemRef<AnyTransId>> for TraitDeclRef
Source§impl TryFrom<ItemRef<AnyTransId>> for TraitImplRef
impl TryFrom<ItemRef<AnyTransId>> for TraitImplRef
Auto Trait Implementations§
impl<Id> Freeze for ItemRef<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for ItemRef<Id>where
Id: RefUnwindSafe,
impl<Id> Send for ItemRef<Id>where
Id: Send,
impl<Id> Sync for ItemRef<Id>where
Id: Sync,
impl<Id> Unpin for ItemRef<Id>where
Id: Unpin,
impl<Id> UnwindSafe for ItemRef<Id>where
Id: 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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more