Struct mentat_core::ValueTypeSet
[−]
[src]
pub struct ValueTypeSet(pub EnumSet<ValueType>);
Methods
impl ValueTypeSet
[src]
impl ValueTypeSet
pub fn any() -> ValueTypeSet
[src]
pub fn any() -> ValueTypeSet
pub fn none() -> ValueTypeSet
[src]
pub fn none() -> ValueTypeSet
pub fn of_one(t: ValueType) -> ValueTypeSet
[src]
pub fn of_one(t: ValueType) -> ValueTypeSet
Return a set containing only t
.
pub fn of_numeric_types() -> ValueTypeSet
[src]
pub fn of_numeric_types() -> ValueTypeSet
Return a set containing Double
and Long
.
pub fn of_numeric_and_instant_types() -> ValueTypeSet
[src]
pub fn of_numeric_and_instant_types() -> ValueTypeSet
Return a set containing Double
, Long
, and Instant
.
pub fn of_keywords() -> ValueTypeSet
[src]
pub fn of_keywords() -> ValueTypeSet
Return a set containing Ref
and Keyword
.
pub fn of_longs() -> ValueTypeSet
[src]
pub fn of_longs() -> ValueTypeSet
Return a set containing Ref
and Long
.
impl ValueTypeSet
[src]
impl ValueTypeSet
pub fn insert(&mut self, vt: ValueType) -> bool
[src]
pub fn insert(&mut self, vt: ValueType) -> bool
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn union(&self, other: &ValueTypeSet) -> ValueTypeSet
[src]
pub fn union(&self, other: &ValueTypeSet) -> ValueTypeSet
Returns a set containing all the types in this set and other
.
pub fn intersection(&self, other: &ValueTypeSet) -> ValueTypeSet
[src]
pub fn intersection(&self, other: &ValueTypeSet) -> ValueTypeSet
pub fn difference(&self, other: &ValueTypeSet) -> ValueTypeSet
[src]
pub fn difference(&self, other: &ValueTypeSet) -> ValueTypeSet
Returns the set difference between self
and other
, which is the
set of items in self
that are not in other
.
pub fn exemplar(&self) -> Option<ValueType>
[src]
pub fn exemplar(&self) -> Option<ValueType>
Return an arbitrary type that's part of this set. For a set containing a single type, this will be that type.
pub fn is_subset(&self, other: &ValueTypeSet) -> bool
[src]
pub fn is_subset(&self, other: &ValueTypeSet) -> bool
pub fn is_disjoint(&self, other: &ValueTypeSet) -> bool
[src]
pub fn is_disjoint(&self, other: &ValueTypeSet) -> bool
Returns true if self
and other
contain no items in common.
pub fn contains(&self, vt: ValueType) -> bool
[src]
pub fn contains(&self, vt: ValueType) -> bool
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn is_unit(&self) -> bool
[src]
pub fn is_unit(&self) -> bool
ⓘImportant traits for Iter<E>pub fn iter(&self) -> Iter<ValueType>
[src]
pub fn iter(&self) -> Iter<ValueType>
impl ValueTypeSet
[src]
impl ValueTypeSet
pub fn is_only_numeric(&self) -> bool
[src]
pub fn is_only_numeric(&self) -> bool
Trait Implementations
impl Clone for ValueTypeSet
[src]
impl Clone for ValueTypeSet
fn clone(&self) -> ValueTypeSet
[src]
fn clone(&self) -> ValueTypeSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ValueTypeSet
[src]
impl Copy for ValueTypeSet
impl Debug for ValueTypeSet
[src]
impl Debug for ValueTypeSet
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ValueTypeSet
[src]
impl Eq for ValueTypeSet
impl PartialEq for ValueTypeSet
[src]
impl PartialEq for ValueTypeSet
fn eq(&self, __arg_0: &ValueTypeSet) -> bool
[src]
fn eq(&self, __arg_0: &ValueTypeSet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValueTypeSet) -> bool
[src]
fn ne(&self, __arg_0: &ValueTypeSet) -> bool
This method tests for !=
.
impl Default for ValueTypeSet
[src]
impl Default for ValueTypeSet
fn default() -> ValueTypeSet
[src]
fn default() -> ValueTypeSet
Returns the "default value" for a type. Read more
impl From<ValueType> for ValueTypeSet
[src]
impl From<ValueType> for ValueTypeSet
impl IntoIterator for ValueTypeSet
[src]
impl IntoIterator for ValueTypeSet
type Item = ValueType
The type of the elements being iterated over.
type IntoIter = Iter<ValueType>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl FromIterator<ValueType> for ValueTypeSet
[src]
impl FromIterator<ValueType> for ValueTypeSet
fn from_iter<I: IntoIterator<Item = ValueType>>(iterator: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = ValueType>>(iterator: I) -> Self
Creates a value from an iterator. Read more
impl Extend<ValueType> for ValueTypeSet
[src]
impl Extend<ValueType> for ValueTypeSet
fn extend<I: IntoIterator<Item = ValueType>>(&mut self, iter: I)
[src]
fn extend<I: IntoIterator<Item = ValueType>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
impl SQLValueTypeSet for ValueTypeSet
[src]
impl SQLValueTypeSet for ValueTypeSet
Auto Trait Implementations
impl Send for ValueTypeSet
impl Send for ValueTypeSet
impl Sync for ValueTypeSet
impl Sync for ValueTypeSet