pub struct Sort {
pub expr: Expr,
pub asc: bool,
pub nulls_first: bool,
}
Expand description
SORT expression
Fields§
§expr: Expr
The expression to sort on
asc: bool
The direction of the sort
nulls_first: bool
Whether to put Nulls before all other data values
Implementations§
Trait Implementations§
Source§impl PartialOrd for Sort
impl PartialOrd for Sort
Source§impl<'a> TreeNodeContainer<'a, Expr> for Sort
impl<'a> TreeNodeContainer<'a, Expr> for Sort
Source§fn apply_elements<F: FnMut(&'a Expr) -> Result<TreeNodeRecursion>>(
&'a self,
f: F,
) -> Result<TreeNodeRecursion>
fn apply_elements<F: FnMut(&'a Expr) -> Result<TreeNodeRecursion>>( &'a self, f: F, ) -> Result<TreeNodeRecursion>
Applies
f
to all elements of the container.
This method is usually called from TreeNode::apply_children
implementations as
a node is actually a container of the node’s children.Source§fn map_elements<F: FnMut(Expr) -> Result<Transformed<Expr>>>(
self,
f: F,
) -> Result<Transformed<Self>>
fn map_elements<F: FnMut(Expr) -> Result<Transformed<Expr>>>( self, f: F, ) -> Result<Transformed<Self>>
Maps all elements of the container with
f
.
This method is usually called from TreeNode::map_children
implementations as
a node is actually a container of the node’s children.impl Eq for Sort
impl StructuralPartialEq for Sort
Auto Trait Implementations§
impl Freeze for Sort
impl !RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl !UnwindSafe for Sort
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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