Enum simplicity::types::Bound
source · pub enum Bound {
Free(String),
Complete(Arc<Final>),
Sum(Type, Type),
Product(Type, Type),
}Expand description
The state of a Type based on all constraints currently imposed on it.
Variants§
Free(String)
Fully-unconstrained type
Complete(Arc<Final>)
Fully-constrained (i.e. complete) type, which has no free variables.
Sum(Type, Type)
A sum of two other types
Product(Type, Type)
A product of two other types
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnwindSafe for Bound
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