Enum query_structure::filter::ScalarProjection
source · pub enum ScalarProjection {
Single(ScalarFieldRef),
Compound(Vec<ScalarFieldRef>),
}
Variants§
Single(ScalarFieldRef)
A single field projection.
Compound(Vec<ScalarFieldRef>)
A tuple projection, e.g. if (a, b)
Implementations§
source§impl ScalarProjection
impl ScalarProjection
pub fn scalar_fields(&self) -> Vec<&ScalarFieldRef>
pub fn as_single(&self) -> Option<&ScalarFieldRef>
Trait Implementations§
source§impl Clone for ScalarProjection
impl Clone for ScalarProjection
source§fn clone(&self) -> ScalarProjection
fn clone(&self) -> ScalarProjection
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 ScalarProjection
impl Debug for ScalarProjection
source§impl Hash for ScalarProjection
impl Hash for ScalarProjection
source§impl PartialEq for ScalarProjection
impl PartialEq for ScalarProjection
source§fn eq(&self, other: &ScalarProjection) -> bool
fn eq(&self, other: &ScalarProjection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScalarProjection
impl StructuralEq for ScalarProjection
impl StructuralPartialEq for ScalarProjection
Auto Trait Implementations§
impl !RefUnwindSafe for ScalarProjection
impl Send for ScalarProjection
impl Sync for ScalarProjection
impl Unpin for ScalarProjection
impl !UnwindSafe for ScalarProjection
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.