pub struct SelectedCase<'a> {
pub case: &'a FunctionCase,
pub match_result: ShapeMatch,
}Expand description
The case chosen by overload selection together with its match result.
Fields§
§case: &'a FunctionCaseThe selected overload case.
match_result: ShapeMatchThe match (score, captures, diagnostics) that selected it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SelectedCase<'a>
impl<'a> !UnwindSafe for SelectedCase<'a>
impl<'a> Freeze for SelectedCase<'a>
impl<'a> Send for SelectedCase<'a>
impl<'a> Sync for SelectedCase<'a>
impl<'a> Unpin for SelectedCase<'a>
impl<'a> UnsafeUnpin for SelectedCase<'a>
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