pub enum GuardedAliasSelection {
Proven {
unit: CodeUnit,
candidates: Vec<CodeUnit>,
},
Alternatives(Vec<CodeUnit>),
}Expand description
What a reference’s guard and build evidence selects from the conditional alias arms on its alias chain.
Variants§
Proven
Evidence implies one arm at every conditional hop and the chain names
exactly unit. candidates are the selected top-level declarations.
Alternatives(Vec<CodeUnit>)
Undecided or unresolvable arms remain. Each type is a candidate only.
Auto Trait Implementations§
impl Freeze for GuardedAliasSelection
impl RefUnwindSafe for GuardedAliasSelection
impl Send for GuardedAliasSelection
impl Sync for GuardedAliasSelection
impl Unpin for GuardedAliasSelection
impl UnsafeUnpin for GuardedAliasSelection
impl UnwindSafe for GuardedAliasSelection
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