pub struct MaterializedScan { /* private fields */ }Expand description
A scan result that keeps its backing temp root alive for downstream row modeling.
Keep this wrapper alive while any downstream code needs to read file metadata from
the scanned paths. tokmd-model uses the underlying paths to compute byte and token
counts after the scan phase.
When converting these scan results into FileRows, pass Self::strip_prefix as the
strip_prefix argument so receipts keep the logical in-memory paths rather than the
temp backing root.
Implementations§
Source§impl MaterializedScan
impl MaterializedScan
pub fn languages(&self) -> &Languages
pub fn logical_paths(&self) -> &[PathBuf]
pub fn strip_prefix(&self) -> &Path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaterializedScan
impl RefUnwindSafe for MaterializedScan
impl Send for MaterializedScan
impl Sync for MaterializedScan
impl Unpin for MaterializedScan
impl UnsafeUnpin for MaterializedScan
impl UnwindSafe for MaterializedScan
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> 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