pub enum RootKind {
Src,
Tests,
Loose,
Doc,
}Expand description
Where a root is.
Variants§
Src
Directly in the root package’s src/.
Tests
Directly in the root package’s tests/.
Loose
In no package (spec §4.1).
Doc
A doc test module (spec
docs/superpowers/specs/2026-10-11-phase-3-5b-doc-tests-design.md
§5), at a path of its own that need not be on disk. In a package’s
program it imports what a tests/ module imports, and no file
beside it; without a graph (std’s doc tests) it imports nothing. A
program with one keeps only the test each doc test module adds.
Trait Implementations§
impl Copy for RootKind
impl Eq for RootKind
impl StructuralPartialEq for RootKind
Auto Trait Implementations§
impl Freeze for RootKind
impl RefUnwindSafe for RootKind
impl Send for RootKind
impl Sync for RootKind
impl Unpin for RootKind
impl UnsafeUnpin for RootKind
impl UnwindSafe for RootKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.