pub struct ProjectIndex {
pub root: PathBuf,
pub anchors: BTreeMap<String, BTreeSet<String>>,
}Expand description
Snapshot of the project’s @ref targets. Built once per compilation
(or watch tick). Read-only after construction.
Fields§
§root: PathBufAbsolute, canonicalized project root (the directory holding brief.toml).
anchors: BTreeMap<String, BTreeSet<String>>Project-relative .brf path (forward-slash, ASCII) → set of heading anchors that exist in it.
Trait Implementations§
Source§impl Clone for ProjectIndex
impl Clone for ProjectIndex
Source§fn clone(&self) -> ProjectIndex
fn clone(&self) -> ProjectIndex
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 Debug for ProjectIndex
impl Debug for ProjectIndex
Source§impl Default for ProjectIndex
impl Default for ProjectIndex
Source§fn default() -> ProjectIndex
fn default() -> ProjectIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectIndex
impl RefUnwindSafe for ProjectIndex
impl Send for ProjectIndex
impl Sync for ProjectIndex
impl Unpin for ProjectIndex
impl UnsafeUnpin for ProjectIndex
impl UnwindSafe for ProjectIndex
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