pub struct DataTypeConstraint { /* private fields */ }Implementations§
Source§impl DataTypeConstraint
impl DataTypeConstraint
pub fn from_allowed_types(allowed_types: &[DataType]) -> Self
pub fn from_not_allowed_types(not_allowed_types: &[DataType]) -> Self
pub fn from_single_allowed_type(allowed_type: DataType) -> Self
pub fn is_type_allowed(&self, data_type: DataType) -> bool
pub fn allowed_types(&self) -> Vec<DataType>
pub fn not_allowed_types(&self) -> Vec<DataType>
pub fn to_type_constraint_syntax(&self) -> String
Trait Implementations§
Source§impl Clone for DataTypeConstraint
impl Clone for DataTypeConstraint
Source§fn clone(&self) -> DataTypeConstraint
fn clone(&self) -> DataTypeConstraint
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 Debug for DataTypeConstraint
impl Debug for DataTypeConstraint
Source§impl Display for DataTypeConstraint
impl Display for DataTypeConstraint
Source§impl PartialEq for DataTypeConstraint
impl PartialEq for DataTypeConstraint
impl Eq for DataTypeConstraint
Auto Trait Implementations§
impl Freeze for DataTypeConstraint
impl RefUnwindSafe for DataTypeConstraint
impl Send for DataTypeConstraint
impl Sync for DataTypeConstraint
impl Unpin for DataTypeConstraint
impl UnwindSafe for DataTypeConstraint
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.