pub enum Type {
Bool,
Int,
Real,
Interval(isize, isize),
Structure(StructureId),
Class(ClassId),
Unresolved(String, Option<Position>),
Undefined,
}
Variants§
Bool
Int
Real
Interval(isize, isize)
Structure(StructureId)
Class(ClassId)
Unresolved(String, Option<Position>)
Undefined
Implementations§
Source§impl Type
impl Type
pub fn is_bounded(&self) -> bool
pub fn resolve_type(&self, entries: &TypeEntries) -> Result<Type, Error>
pub fn is_bool(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_real(&self) -> bool
pub fn is_interval(&self) -> bool
pub fn is_undefined(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_structure(&self) -> bool
pub fn is_class(&self) -> bool
pub fn class(&self) -> Option<ClassId>
pub fn is_compatible_with(&self, problem: &Problem, other: &Self) -> bool
pub fn is_subtype_of(&self, problem: &Problem, other: &Self) -> bool
pub fn common_type(&self, problem: &Problem, other: &Self) -> Type
pub fn check_interval( &self, problem: &Problem, position: &Option<Position>, ) -> Result<(), Error>
pub fn all(&self, problem: &Problem) -> Vec<Expr>
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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