pub struct Tree<S> { /* private fields */ }Implementations§
Source§impl Tree<Identity>
impl Tree<Identity>
pub fn builder<P: AsRef<Path>>(base: P) -> TreeBuilder<Identity>
Sourcepub fn infer_prefix_part_lengths<P: AsRef<Path>>(
base: P,
) -> Result<Option<Vec<usize>>, Error>
pub fn infer_prefix_part_lengths<P: AsRef<Path>>( base: P, ) -> Result<Option<Vec<usize>>, Error>
Infer the prefix part lengths used to create a store.
The result will be empty if and only if the store has no files (even if there are directories).
If this function returns a result, it is guaranteed to be correct if the store is valid, but the validity is not checked.
Trait Implementations§
impl<S: Eq> Eq for Tree<S>
impl<S> StructuralPartialEq for Tree<S>
Auto Trait Implementations§
impl<S> Freeze for Tree<S>where
S: Freeze,
impl<S> RefUnwindSafe for Tree<S>where
S: RefUnwindSafe,
impl<S> Send for Tree<S>where
S: Send,
impl<S> Sync for Tree<S>where
S: Sync,
impl<S> Unpin for Tree<S>where
S: Unpin,
impl<S> UnwindSafe for Tree<S>where
S: UnwindSafe,
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