#[non_exhaustive]pub enum ReferenceTree<'a> {
Opaque(&'a dyn Tree),
Disk(&'a DiskTree),
Git(&'a CommittedGitTree<'a>),
Registry(&'a RegistryArchiveTree<'a>),
}Expand description
The actual backend of a structural reference source.
Disk contexts retain the root needed to verify cross-root path declarations. Opaque trees permit path edges only inside their own authority. Git contexts retain their exact committed source; registry contexts retain authenticated archives. None supplies configured provider proof.
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.
Opaque(&'a dyn Tree)
A caller-owned tree with no host-directory relationship to other trees.
Disk(&'a DiskTree)
A contained disk root whose actual directory relationship can be checked.
Git(&'a CommittedGitTree<'a>)
An opaque exact committed Git source.
Registry(&'a RegistryArchiveTree<'a>)
An opaque checksum-authenticated registry archive.
Trait Implementations§
Source§impl<'a> Clone for ReferenceTree<'a>
impl<'a> Clone for ReferenceTree<'a>
impl<'a> Copy for ReferenceTree<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReferenceTree<'a>
impl<'a> !Send for ReferenceTree<'a>
impl<'a> !Sync for ReferenceTree<'a>
impl<'a> !UnwindSafe for ReferenceTree<'a>
impl<'a> Forget for ReferenceTree<'a>
impl<'a> Freeze for ReferenceTree<'a>
impl<'a> Move for ReferenceTree<'a>
impl<'a> Unpin for ReferenceTree<'a>
impl<'a> UnsafeUnpin for ReferenceTree<'a>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more