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§
§impl Clone for SiblingLocation
impl Clone for SiblingLocation
§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 more§impl Debug for SiblingLocation
impl Debug for SiblingLocation
§impl Default for SiblingLocation
impl Default for SiblingLocation
§fn default() -> SiblingLocation
fn default() -> SiblingLocation
Returns the “default value” for a type. Read more
§impl Ord for SiblingLocation
impl Ord for SiblingLocation
§impl PartialEq<SiblingLocation> for SiblingLocation
impl PartialEq<SiblingLocation> for SiblingLocation
§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 ==
.§impl PartialOrd<SiblingLocation> for SiblingLocation
impl PartialOrd<SiblingLocation> for SiblingLocation
§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 StructuralEq for SiblingLocation
impl StructuralPartialEq for SiblingLocation
Auto Trait Implementations§
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more