pub struct OathWorkspace {
pub docs: HashMap<String, Doc>,
pub referenced: HashSet<String>,
}Expand description
What plan needs to resolve references: every oath by path, plus which
sections a reference block consumes somewhere in the project. A section that
is referenced stops being a standalone example, so this is whole-project
knowledge — see ADR 0016 on why each runner builds it at its once-per-run
discovery pass.
Fields§
§docs: HashMap<String, Doc>§referenced: HashSet<String>"{path}#{slug}" for every referenced section; a whole-file reference
is recorded as "{path}#".
Trait Implementations§
Source§impl Clone for OathWorkspace
impl Clone for OathWorkspace
Source§fn clone(&self) -> OathWorkspace
fn clone(&self) -> OathWorkspace
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 moreSource§impl Default for OathWorkspace
impl Default for OathWorkspace
Source§fn default() -> OathWorkspace
fn default() -> OathWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OathWorkspace
impl RefUnwindSafe for OathWorkspace
impl Send for OathWorkspace
impl Sync for OathWorkspace
impl Unpin for OathWorkspace
impl UnsafeUnpin for OathWorkspace
impl UnwindSafe for OathWorkspace
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