Struct datafusion_common::Constraints
source · pub struct Constraints { /* private fields */ }
Expand description
This object encapsulates a list of functional constraints:
Implementations§
source§impl Constraints
impl Constraints
sourcepub fn new_from_table_constraints(
constraints: &[TableConstraint],
df_schema: &DFSchemaRef
) -> Result<Self>
pub fn new_from_table_constraints( constraints: &[TableConstraint], df_schema: &DFSchemaRef ) -> Result<Self>
Convert each TableConstraint
to corresponding Constraint
Trait Implementations§
source§impl Clone for Constraints
impl Clone for Constraints
source§fn clone(&self) -> Constraints
fn clone(&self) -> Constraints
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 Constraints
impl Debug for Constraints
source§impl Display for Constraints
impl Display for Constraints
source§impl Hash for Constraints
impl Hash for Constraints
source§impl PartialEq<Constraints> for Constraints
impl PartialEq<Constraints> for Constraints
source§fn eq(&self, other: &Constraints) -> bool
fn eq(&self, other: &Constraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Constraints
impl StructuralEq for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations§
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnwindSafe for Constraints
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.