Enum partiql_types::StructConstraint
source · #[non_exhaustive]pub enum StructConstraint {
Open(bool),
Ordered(bool),
DuplicateAttrs(bool),
Fields(Vec<StructField>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for StructConstraint
impl Clone for StructConstraint
source§fn clone(&self) -> StructConstraint
fn clone(&self) -> StructConstraint
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 StructConstraint
impl Debug for StructConstraint
source§impl Hash for StructConstraint
impl Hash for StructConstraint
source§impl Ord for StructConstraint
impl Ord for StructConstraint
source§fn cmp(&self, other: &StructConstraint) -> Ordering
fn cmp(&self, other: &StructConstraint) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StructConstraint> for StructConstraint
impl PartialEq<StructConstraint> for StructConstraint
source§fn eq(&self, other: &StructConstraint) -> bool
fn eq(&self, other: &StructConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StructConstraint> for StructConstraint
impl PartialOrd<StructConstraint> for StructConstraint
source§fn partial_cmp(&self, other: &StructConstraint) -> Option<Ordering>
fn partial_cmp(&self, other: &StructConstraint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for StructConstraint
impl StructuralEq for StructConstraint
impl StructuralPartialEq for StructConstraint
Auto Trait Implementations§
impl RefUnwindSafe for StructConstraint
impl Send for StructConstraint
impl Sync for StructConstraint
impl Unpin for StructConstraint
impl UnwindSafe for StructConstraint
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