pub enum Root {
Known(String),
Unknown,
}Expand description
The project root a command is judged against.
An unknown root is a value, not an absence, so no consumer can read it as “no boundary”: each
has to match on Root::Unknown and say what it does then, and every place that grants
something on the strength of the root fails closed there. The ratchet test
root_consumers_tests lists every consumer.
Variants§
Trait Implementations§
impl Eq for Root
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl Forget for Root
impl Freeze for Root
impl Move for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnsafeUnpin for Root
impl UnwindSafe for Root
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.