Struct mentat_core::ValueTypeSet
[−]
[src]
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]
ⓘImportant traits for Iter<E>
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
impl Copy for ValueTypeSet
[src]
impl Copy for ValueTypeSet
impl Debug for ValueTypeSet
[src]
[+]
impl Debug for ValueTypeSet
impl Eq for ValueTypeSet
[src]
impl Eq for ValueTypeSet
impl PartialEq for ValueTypeSet
[src]
[+]
impl PartialEq for ValueTypeSet
impl Default for ValueTypeSet
[src]
[+]
impl Default for ValueTypeSet
impl From<ValueType> for ValueTypeSet
[src]
[+]
impl From<ValueType> for ValueTypeSet
impl IntoIterator for ValueTypeSet
[src]
[+]
impl IntoIterator for ValueTypeSet
impl FromIterator<ValueType> for ValueTypeSet
[src]
[+]
impl FromIterator<ValueType> for ValueTypeSet
impl Extend<ValueType> for ValueTypeSet
[src]
[+]
impl Extend<ValueType> for ValueTypeSet
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