pub enum SubtypeConstraint {
Range(Range),
Array(Vec<DiscreteRange>, Option<Box<WithPos<SubtypeConstraint>>>),
Record(Vec<ElementConstraint>),
}
Variants§
Range(Range)
Array(Vec<DiscreteRange>, Option<Box<WithPos<SubtypeConstraint>>>)
Empty Vec means Open
Record(Vec<ElementConstraint>)
Trait Implementations§
Source§impl Clone for SubtypeConstraint
impl Clone for SubtypeConstraint
Source§fn clone(&self) -> SubtypeConstraint
fn clone(&self) -> SubtypeConstraint
Returns a copy 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 Debug for SubtypeConstraint
impl Debug for SubtypeConstraint
Source§impl PartialEq for SubtypeConstraint
impl PartialEq for SubtypeConstraint
impl StructuralPartialEq for SubtypeConstraint
Auto Trait Implementations§
impl Freeze for SubtypeConstraint
impl !RefUnwindSafe for SubtypeConstraint
impl Send for SubtypeConstraint
impl Sync for SubtypeConstraint
impl Unpin for SubtypeConstraint
impl !UnwindSafe for SubtypeConstraint
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