#[non_exhaustive]pub enum TreeGrouping {
Level(u32),
Depth,
}Expand description
What a tree grouping keeps of an ltree path (#1498).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Level(u32)
The first n labels (subpath(path, 0, n)); a shorter path is kept whole.
Depth
The number of labels (nlevel(path)).
Trait Implementations§
Source§impl Clone for TreeGrouping
impl Clone for TreeGrouping
impl Copy for TreeGrouping
Source§impl Debug for TreeGrouping
impl Debug for TreeGrouping
Source§impl<'de> Deserialize<'de> for TreeGrouping
impl<'de> Deserialize<'de> for TreeGrouping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TreeGrouping
Source§impl PartialEq for TreeGrouping
impl PartialEq for TreeGrouping
Source§impl Serialize for TreeGrouping
impl Serialize for TreeGrouping
impl StructuralPartialEq for TreeGrouping
Auto Trait Implementations§
impl Freeze for TreeGrouping
impl RefUnwindSafe for TreeGrouping
impl Send for TreeGrouping
impl Sync for TreeGrouping
impl Unpin for TreeGrouping
impl UnsafeUnpin for TreeGrouping
impl UnwindSafe for TreeGrouping
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.