pub enum SingularQuerySegment {
Name(Name),
Index(Index),
}Expand description
A segment in a singular query
Variants§
Trait Implementations§
source§impl Clone for SingularQuerySegment
impl Clone for SingularQuerySegment
source§fn clone(&self) -> SingularQuerySegment
fn clone(&self) -> SingularQuerySegment
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 SingularQuerySegment
impl Debug for SingularQuerySegment
source§impl Display for SingularQuerySegment
impl Display for SingularQuerySegment
source§impl PartialEq for SingularQuerySegment
impl PartialEq for SingularQuerySegment
source§fn eq(&self, other: &SingularQuerySegment) -> bool
fn eq(&self, other: &SingularQuerySegment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<QuerySegment> for SingularQuerySegment
impl TryFrom<QuerySegment> for SingularQuerySegment
§type Error = NonSingularQueryError
type Error = NonSingularQueryError
The type returned in the event of a conversion error.
source§impl TryFrom<Selector> for SingularQuerySegment
impl TryFrom<Selector> for SingularQuerySegment
impl Eq for SingularQuerySegment
impl StructuralPartialEq for SingularQuerySegment
Auto Trait Implementations§
impl RefUnwindSafe for SingularQuerySegment
impl Send for SingularQuerySegment
impl Sync for SingularQuerySegment
impl Unpin for SingularQuerySegment
impl UnwindSafe for SingularQuerySegment
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