pub struct Refer<T> {
pub value: T,
pub src_ref: SrcRef,
}
Expand description
Packs any value together with a source reference
Fields§
§value: T
Value
src_ref: SrcRef
Source code reference
Implementations§
Trait Implementations§
Source§impl From<Refer<Vec<Identifier>>> for QualifiedName
impl From<Refer<Vec<Identifier>>> for QualifiedName
Source§impl<T: IntoIterator> IntoIterator for Refer<T>
impl<T: IntoIterator> IntoIterator for Refer<T>
Source§impl<T: Ord> Ord for Refer<T>
impl<T: Ord> Ord for Refer<T>
Source§impl Parse for Refer<WorkbenchKind>
impl Parse for Refer<WorkbenchKind>
fn parse(pair: Pair<'_>) -> ParseResult<Self>
Source§impl<T: PartialOrd> PartialOrd for Refer<T>
impl<T: PartialOrd> PartialOrd for Refer<T>
Source§impl<T> SrcReferrer for Refer<T>
impl<T> SrcReferrer for Refer<T>
impl<T: Eq> Eq for Refer<T>
impl<T> StructuralPartialEq for Refer<T>
Auto Trait Implementations§
impl<T> Freeze for Refer<T>where
T: Freeze,
impl<T> RefUnwindSafe for Refer<T>where
T: RefUnwindSafe,
impl<T> Send for Refer<T>where
T: Send,
impl<T> Sync for Refer<T>where
T: Sync,
impl<T> Unpin for Refer<T>where
T: Unpin,
impl<T> UnwindSafe for Refer<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, C> CompactStringExt for C
impl<I, C> CompactStringExt for C
Source§fn concat_compact(self) -> CompactString
fn concat_compact(self) -> CompactString
Concatenates all the items of a collection into a
CompactString
Read moreSource§fn join_compact<S>(self, separator: S) -> CompactString
fn join_compact<S>(self, separator: S) -> CompactString
Joins all the items of a collection, placing a separator between them, forming a
CompactString
Read moreSource§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more