pub struct TypeConstraint {
pub expected: PerlType,
pub actual: PerlType,
pub location: TypeLocation,
pub reason: String,
}Expand description
Type constraint for type checking
Fields§
§expected: PerlTypeThe expected type based on context
actual: PerlTypeThe actual inferred type
location: TypeLocationSource location where the constraint was generated
reason: StringHuman-readable explanation for the constraint
Trait Implementations§
Source§impl Clone for TypeConstraint
impl Clone for TypeConstraint
Source§fn clone(&self) -> TypeConstraint
fn clone(&self) -> TypeConstraint
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for TypeConstraint
impl RefUnwindSafe for TypeConstraint
impl Send for TypeConstraint
impl Sync for TypeConstraint
impl Unpin for TypeConstraint
impl UnsafeUnpin for TypeConstraint
impl UnwindSafe for TypeConstraint
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