pub enum OutputConstraint<Obj> {
Show 18 variants
OfType(OfType<Obj>),
CmpInType {
constraint_objs: (Obj, Obj),
of_type: String,
comparison: Comparison,
},
CmpElim {
constraint_objs: (Vec<Obj>, Vec<Obj>),
of_type: String,
polarities: Vec<Polarity>,
},
JustType(JustSomething<Obj>),
JustSort(JustSomething<Obj>),
CmpTypes(CmpSomething<Obj>),
CmpLevels(CmpSomething<Obj>),
CmpTeles(CmpSomething<Obj>),
CmpSorts(CmpSomething<Obj>),
Guard {
constraint: Box<OutputConstraint<Obj>>,
problem: ProblemId,
},
Assign {
constraint_obj: Obj,
value: String,
},
TypedAssign(TypedAssign<Obj>),
PostponedCheckArgs(PostponedCheckArgs<Obj>),
IsEmptyType {
the_type: String,
},
SizeLtSat {
the_type: String,
},
FindInstanceOF(FindInstanceOF<Obj>),
PTSInstance {
constraint_objs: (Obj, Obj),
},
PostponedCheckFunDef {
name: String,
of_type: String,
},
}Variants§
OfType(OfType<Obj>)
CmpInType
CmpElim
JustType(JustSomething<Obj>)
JustSort(JustSomething<Obj>)
CmpTypes(CmpSomething<Obj>)
CmpLevels(CmpSomething<Obj>)
CmpTeles(CmpSomething<Obj>)
CmpSorts(CmpSomething<Obj>)
Guard
Assign
TypedAssign(TypedAssign<Obj>)
PostponedCheckArgs(PostponedCheckArgs<Obj>)
IsEmptyType
SizeLtSat
FindInstanceOF(FindInstanceOF<Obj>)
PTSInstance
Fields
§
constraint_objs: (Obj, Obj)PostponedCheckFunDef
Implementations§
Source§impl<Obj> OutputConstraint<Obj>
impl<Obj> OutputConstraint<Obj>
pub fn try_into_of_type(self) -> Result<OfType<Obj>, Self>
pub fn try_as_of_type(&self) -> Result<&OfType<Obj>, &Self>
Trait Implementations§
Source§impl<Obj: Clone> Clone for OutputConstraint<Obj>
impl<Obj: Clone> Clone for OutputConstraint<Obj>
Source§fn clone(&self) -> OutputConstraint<Obj>
fn clone(&self) -> OutputConstraint<Obj>
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 moreSource§impl<Obj> CollectObjs<Obj> for OutputConstraint<Obj>
impl<Obj> CollectObjs<Obj> for OutputConstraint<Obj>
fn collect_objs(&self, collect: impl FnMut(&Obj))
Source§impl<Obj: Debug> Debug for OutputConstraint<Obj>
impl<Obj: Debug> Debug for OutputConstraint<Obj>
Source§impl<'de, Obj> Deserialize<'de> for OutputConstraint<Obj>where
Obj: Deserialize<'de>,
impl<'de, Obj> Deserialize<'de> for OutputConstraint<Obj>where
Obj: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Obj: PartialEq> PartialEq for OutputConstraint<Obj>
impl<Obj: PartialEq> PartialEq for OutputConstraint<Obj>
impl<Obj: Eq> Eq for OutputConstraint<Obj>
impl<Obj> StructuralPartialEq for OutputConstraint<Obj>
Auto Trait Implementations§
impl<Obj> Freeze for OutputConstraint<Obj>where
Obj: Freeze,
impl<Obj> RefUnwindSafe for OutputConstraint<Obj>where
Obj: RefUnwindSafe,
impl<Obj> Send for OutputConstraint<Obj>where
Obj: Send,
impl<Obj> Sync for OutputConstraint<Obj>where
Obj: Sync,
impl<Obj> Unpin for OutputConstraint<Obj>where
Obj: Unpin,
impl<Obj> UnwindSafe for OutputConstraint<Obj>where
Obj: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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