struct ResolutionKeyWorkspace<'a> {
root: &'a Path,
paths: &'a BTreeSet<String>,
row_limit: usize,
keys: BTreeSet<CanonicalResolutionKey>,
retained_bytes: u64,
limit: u64,
}Expand description
Distinct canonical witnesses owned by one bounded incremental phase.
Fields§
§root: &'a PathRoot and affected source sample used by the existing full-refresh guidance.
paths: &'a BTreeSet<String>Current owning source paths, borrowed without another path inventory.
row_limit: usizeExisting distinct-key ceiling, checked before insertion.
keys: BTreeSet<CanonicalResolutionKey>Ordered witnesses; duplicates retain no additional key copy.
retained_bytes: u64Tree/key/text ownership already admitted in this workspace.
limit: u64Operation remainder after all coexisting phase owners.
Implementations§
Source§impl<'a> ResolutionKeyWorkspace<'a>
impl<'a> ResolutionKeyWorkspace<'a>
Sourcefn new(limit: u64, root: &'a Path, paths: &'a BTreeSet<String>) -> Self
fn new(limit: u64, root: &'a Path, paths: &'a BTreeSet<String>) -> Self
Start a workspace under the current operation remainder.
Sourcefn insert(&mut self, key: &CanonicalResolutionKey) -> Result<(), CliError>
fn insert(&mut self, key: &CanonicalResolutionKey) -> Result<(), CliError>
Admit a borrowed witness before cloning its canonical identity.
Sourcefn insert_owned(&mut self, key: CanonicalResolutionKey) -> Result<(), CliError>
fn insert_owned(&mut self, key: CanonicalResolutionKey) -> Result<(), CliError>
Move an already decoded witness without making a second canonical string.
Auto Trait Implementations§
impl<'a> Freeze for ResolutionKeyWorkspace<'a>
impl<'a> RefUnwindSafe for ResolutionKeyWorkspace<'a>
impl<'a> Send for ResolutionKeyWorkspace<'a>
impl<'a> Sync for ResolutionKeyWorkspace<'a>
impl<'a> Unpin for ResolutionKeyWorkspace<'a>
impl<'a> UnsafeUnpin for ResolutionKeyWorkspace<'a>
impl<'a> UnwindSafe for ResolutionKeyWorkspace<'a>
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<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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