pub enum QualifiedReceiverBase {
Variable(Vec<CodeUnit>),
Type(Option<CodeUnit>),
Ambiguous,
}Expand description
What a receiver spelled as a qualified name denotes.
ns::value.run() reads the member off the declared type of the variable
ns::value; a type path spelled as a receiver reads it off the type itself.
Forward navigation and the inverse walk both ask this before typing such a
receiver, so the two directions accept the same receiver spellings (#2547).
Variants§
Variable(Vec<CodeUnit>)
Every visible declaration of the one variable the path names.
Type(Option<CodeUnit>)
The type the path names when it names no variable.
Ambiguous
The path names more than one variable; typing either would be a guess.
Auto Trait Implementations§
impl Freeze for QualifiedReceiverBase
impl RefUnwindSafe for QualifiedReceiverBase
impl Send for QualifiedReceiverBase
impl Sync for QualifiedReceiverBase
impl Unpin for QualifiedReceiverBase
impl UnsafeUnpin for QualifiedReceiverBase
impl UnwindSafe for QualifiedReceiverBase
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> 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