Enum datafusion::sql::sqlparser::ast::OneOrManyWithParens
source · pub enum OneOrManyWithParens<T> {
One(T),
Many(Vec<T>),
}
Expand description
Encapsulates the common pattern in SQL where either one unparenthesized item such as an identifier or expression is permitted, or multiple of the same item in a parenthesized list.
Variants§
Trait Implementations§
source§impl<T> Clone for OneOrManyWithParens<T>where
T: Clone,
impl<T> Clone for OneOrManyWithParens<T>where
T: Clone,
source§fn clone(&self) -> OneOrManyWithParens<T>
fn clone(&self) -> OneOrManyWithParens<T>
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<T> Debug for OneOrManyWithParens<T>where
T: Debug,
impl<T> Debug for OneOrManyWithParens<T>where
T: Debug,
source§impl<T> Display for OneOrManyWithParens<T>where
T: Display,
impl<T> Display for OneOrManyWithParens<T>where
T: Display,
source§impl<T> Hash for OneOrManyWithParens<T>where
T: Hash,
impl<T> Hash for OneOrManyWithParens<T>where
T: Hash,
source§impl<T> Ord for OneOrManyWithParens<T>where
T: Ord,
impl<T> Ord for OneOrManyWithParens<T>where
T: Ord,
source§fn cmp(&self, other: &OneOrManyWithParens<T>) -> Ordering
fn cmp(&self, other: &OneOrManyWithParens<T>) -> 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<T> PartialEq for OneOrManyWithParens<T>where
T: PartialEq,
impl<T> PartialEq for OneOrManyWithParens<T>where
T: PartialEq,
source§impl<T> PartialOrd for OneOrManyWithParens<T>where
T: PartialOrd,
impl<T> PartialOrd for OneOrManyWithParens<T>where
T: PartialOrd,
source§impl<T> Visit for OneOrManyWithParens<T>where
T: Visit,
impl<T> Visit for OneOrManyWithParens<T>where
T: Visit,
source§impl<T> VisitMut for OneOrManyWithParens<T>where
T: VisitMut,
impl<T> VisitMut for OneOrManyWithParens<T>where
T: VisitMut,
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl<T> Eq for OneOrManyWithParens<T>where
T: Eq,
impl<T> StructuralPartialEq for OneOrManyWithParens<T>
Auto Trait Implementations§
impl<T> Freeze for OneOrManyWithParens<T>where
T: Freeze,
impl<T> RefUnwindSafe for OneOrManyWithParens<T>where
T: RefUnwindSafe,
impl<T> Send for OneOrManyWithParens<T>where
T: Send,
impl<T> Sync for OneOrManyWithParens<T>where
T: Sync,
impl<T> Unpin for OneOrManyWithParens<T>where
T: Unpin,
impl<T> UnwindSafe for OneOrManyWithParens<T>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more