pub enum IndexLevel {
Root,
Layer(Layer),
TypeFolder(PathBuf),
}Expand description
Which level of the catalog an Index represents.
Variants§
Root
The store-wide root index.md (layers + per-type counts).
Layer(Layer)
A layer index.md (every type-folder under one layer).
TypeFolder(PathBuf)
A type-folder index.md + index.jsonl (every file in the folder).
Trait Implementations§
Source§impl Clone for IndexLevel
impl Clone for IndexLevel
Source§fn clone(&self) -> IndexLevel
fn clone(&self) -> IndexLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexLevel
impl Debug for IndexLevel
Source§impl PartialEq for IndexLevel
impl PartialEq for IndexLevel
Source§fn eq(&self, other: &IndexLevel) -> bool
fn eq(&self, other: &IndexLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IndexLevel
impl StructuralPartialEq for IndexLevel
Auto Trait Implementations§
impl Freeze for IndexLevel
impl RefUnwindSafe for IndexLevel
impl Send for IndexLevel
impl Sync for IndexLevel
impl Unpin for IndexLevel
impl UnsafeUnpin for IndexLevel
impl UnwindSafe for IndexLevel
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.