pub struct OverloadResolution {
pub ok: Vec<TypeId>,
pub non_functions: Vec<TypeId>,
pub potential_overloads: Vec<(TypeId, Vec<ConstraintV>)>,
pub incompatible_overloads: Vec<(TypeId, IncompatibilityReason)>,
pub arity_mismatches: Vec<TypeId>,
pub metamethods: DenseHashSet<TypeId>,
}Fields§
§ok: Vec<TypeId>§non_functions: Vec<TypeId>§potential_overloads: Vec<(TypeId, Vec<ConstraintV>)>§incompatible_overloads: Vec<(TypeId, IncompatibilityReason)>§arity_mismatches: Vec<TypeId>§metamethods: DenseHashSet<TypeId>Implementations§
Source§impl OverloadResolution
impl OverloadResolution
pub fn get_unambiguous_overload(&self) -> SelectedOverload
Trait Implementations§
Source§impl Clone for OverloadResolution
impl Clone for OverloadResolution
Source§fn clone(&self) -> OverloadResolution
fn clone(&self) -> OverloadResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for OverloadResolution
impl !Sync for OverloadResolution
impl Freeze for OverloadResolution
impl RefUnwindSafe for OverloadResolution
impl Unpin for OverloadResolution
impl UnsafeUnpin for OverloadResolution
impl UnwindSafe for OverloadResolution
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