pub enum SiblingLocation {
Above,
Below,
AboveAndBelow,
NotFound,
}
Expand description
Determines if a sibling is above or below in the given level of hierarchy
Variants§
Trait Implementations§
source§impl Clone for SiblingLocation
impl Clone for SiblingLocation
source§fn clone(&self) -> SiblingLocation
fn clone(&self) -> SiblingLocation
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 SiblingLocation
impl Debug for SiblingLocation
source§impl Default for SiblingLocation
impl Default for SiblingLocation
source§fn default() -> SiblingLocation
fn default() -> SiblingLocation
Returns the “default value” for a type. Read more
source§impl Ord for SiblingLocation
impl Ord for SiblingLocation
source§fn cmp(&self, other: &SiblingLocation) -> Ordering
fn cmp(&self, other: &SiblingLocation) -> 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 PartialEq for SiblingLocation
impl PartialEq for SiblingLocation
source§fn eq(&self, other: &SiblingLocation) -> bool
fn eq(&self, other: &SiblingLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SiblingLocation
impl PartialOrd for SiblingLocation
source§fn partial_cmp(&self, other: &SiblingLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &SiblingLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SiblingLocation
impl Eq for SiblingLocation
impl StructuralPartialEq for SiblingLocation
Auto Trait Implementations§
impl Freeze for SiblingLocation
impl RefUnwindSafe for SiblingLocation
impl Send for SiblingLocation
impl Sync for SiblingLocation
impl Unpin for SiblingLocation
impl UnwindSafe for SiblingLocation
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