pub struct Paths {
pub root: PathBuf,
pub base: PathBuf,
}Expand description
Filesystem layout for a single indexed project.
Fields§
§root: PathBufProject root (the directory being indexed).
base: PathBufThe .greplm directory.
Implementations§
Source§impl Paths
impl Paths
pub fn new(root: impl AsRef<Path>) -> Self
Sourcepub fn segments_dir(&self) -> PathBuf
pub fn segments_dir(&self) -> PathBuf
Directory holding immutable index segments.
pub fn config_file(&self) -> PathBuf
pub fn meta_file(&self) -> PathBuf
pub fn cache_file(&self) -> PathBuf
Sourcepub fn savings_file(&self) -> PathBuf
pub fn savings_file(&self) -> PathBuf
Append-only log of per-query token-savings records.
pub fn gitignore_file(&self) -> PathBuf
pub fn fst_file(&self, seg: u64) -> PathBuf
pub fn post_file(&self, seg: u64) -> PathBuf
pub fn docs_file(&self, seg: u64) -> PathBuf
pub fn syms_file(&self, seg: u64) -> PathBuf
pub fn refs_file(&self, seg: u64) -> PathBuf
pub fn live_file(&self, seg: u64) -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnsafeUnpin for Paths
impl UnwindSafe for Paths
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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