pub enum LeafPolicy {
Entry,
BlobOnly,
LeafContentBlob,
}Expand description
How a tree-path walk classifies and materializes the terminal entry.
Variants§
Entry
Return the terminal TreeEntry regardless of entry type (provenance).
BlobOnly
Return the blob content hash at the terminal path; symlinks are excluded (redact).
LeafContentBlob
Load the terminal blob via TreeEntry::leaf_content_hash, including symlinks
(staleness).
Trait Implementations§
Source§impl Clone for LeafPolicy
impl Clone for LeafPolicy
Source§fn clone(&self) -> LeafPolicy
fn clone(&self) -> LeafPolicy
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 moreimpl Copy for LeafPolicy
Source§impl Debug for LeafPolicy
impl Debug for LeafPolicy
impl Eq for LeafPolicy
Source§impl PartialEq for LeafPolicy
impl PartialEq for LeafPolicy
Source§fn eq(&self, other: &LeafPolicy) -> bool
fn eq(&self, other: &LeafPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeafPolicy
Auto Trait Implementations§
impl Freeze for LeafPolicy
impl RefUnwindSafe for LeafPolicy
impl Send for LeafPolicy
impl Sync for LeafPolicy
impl Unpin for LeafPolicy
impl UnsafeUnpin for LeafPolicy
impl UnwindSafe for LeafPolicy
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