pub struct PathKey {
pub field: FieldRef,
pub direction: PathKeyDirection,
pub nulls: PathKeyNulls,
}Expand description
One column in an ordering guarantee. A PathKeys is a
Vec
Fields§
§field: FieldRef§direction: PathKeyDirection§nulls: PathKeyNullsImplementations§
Source§impl PathKey
impl PathKey
Sourcepub fn asc(field: FieldRef) -> Self
pub fn asc(field: FieldRef) -> Self
Create an ascending pathkey with NULLS LAST (the PG
default for ASC). Convenience constructor used by
IndexScan when the index is ascending.
Sourcepub fn same_column_and_direction(&self, other: &PathKey) -> bool
pub fn same_column_and_direction(&self, other: &PathKey) -> bool
Returns true when two pathkeys describe the same column in the same direction. Null placement is NOT compared — two pathkeys on the same column are equivalent for incremental-sort purposes regardless of null placement because sort stability handles the null edge case.
Trait Implementations§
impl Eq for PathKey
impl StructuralPartialEq for PathKey
Auto Trait Implementations§
impl Freeze for PathKey
impl RefUnwindSafe for PathKey
impl Send for PathKey
impl Sync for PathKey
impl Unpin for PathKey
impl UnsafeUnpin for PathKey
impl UnwindSafe for PathKey
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request