Struct partiql_types::PartiqlType
source · pub struct PartiqlType(/* private fields */);
Implementations§
source§impl PartiqlType
impl PartiqlType
pub const fn new(kind: TypeKind) -> PartiqlType
pub fn new_any() -> PartiqlType
pub fn new_struct(s: StructType) -> PartiqlType
pub fn new_bag(b: BagType) -> PartiqlType
pub fn new_array(a: ArrayType) -> PartiqlType
pub fn any_of<I>(types: I) -> PartiqlTypewhere I: IntoIterator<Item = PartiqlType>,
pub fn union_with(self, other: PartiqlType) -> PartiqlType
pub fn is_string(&self) -> bool
pub fn kind(&self) -> &TypeKind
pub fn is_struct(&self) -> bool
pub fn is_collection(&self) -> bool
pub fn is_unordered_collection(&self) -> bool
pub fn is_ordered_collection(&self) -> bool
pub fn is_bag(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_any(&self) -> bool
pub fn is_undefined(&self) -> bool
Trait Implementations§
source§impl Clone for PartiqlType
impl Clone for PartiqlType
source§fn clone(&self) -> PartiqlType
fn clone(&self) -> PartiqlType
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 PartiqlType
impl Debug for PartiqlType
source§impl FromIterator<PartiqlType> for AnyOf
impl FromIterator<PartiqlType> for AnyOf
source§fn from_iter<T: IntoIterator<Item = PartiqlType>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PartiqlType>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for PartiqlType
impl Hash for PartiqlType
source§impl Ord for PartiqlType
impl Ord for PartiqlType
source§fn cmp(&self, other: &PartiqlType) -> Ordering
fn cmp(&self, other: &PartiqlType) -> 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<PartiqlType> for PartiqlType
impl PartialEq<PartiqlType> for PartiqlType
source§fn eq(&self, other: &PartiqlType) -> bool
fn eq(&self, other: &PartiqlType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PartiqlType> for PartiqlType
impl PartialOrd<PartiqlType> for PartiqlType
source§fn partial_cmp(&self, other: &PartiqlType) -> Option<Ordering>
fn partial_cmp(&self, other: &PartiqlType) -> 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 PartiqlType
impl StructuralEq for PartiqlType
impl StructuralPartialEq for PartiqlType
impl Type for PartiqlType
Auto Trait Implementations§
impl RefUnwindSafe for PartiqlType
impl Send for PartiqlType
impl Sync for PartiqlType
impl Unpin for PartiqlType
impl UnwindSafe for PartiqlType
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