pub struct MemberCandidate {
pub owner: String,
pub name: String,
pub file: String,
pub line: usize,
}Expand description
One row of an ambiguous member seed: the declaring type, the member name, and the FIRST site that type declares it at.
Never a bare type list (a candidate carries the member’s own name and
declaration site, not just the type’s) – what a member-ambiguous answer
renders instead of reusing an ambiguous type’s own {id, def site, kind}
rows.
Fields§
§owner: StringThe def id of the declaring type.
name: StringThe member’s own name.
file: StringThe file the member is declared in.
line: usizeThe line the member is declared at.
Trait Implementations§
Source§impl Clone for MemberCandidate
impl Clone for MemberCandidate
Source§impl Debug for MemberCandidate
impl Debug for MemberCandidate
Source§impl PartialEq for MemberCandidate
impl PartialEq for MemberCandidate
impl StructuralPartialEq for MemberCandidate
Auto Trait Implementations§
impl Freeze for MemberCandidate
impl RefUnwindSafe for MemberCandidate
impl Send for MemberCandidate
impl Sync for MemberCandidate
impl Unpin for MemberCandidate
impl UnsafeUnpin for MemberCandidate
impl UnwindSafe for MemberCandidate
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<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