pub struct InputSizes { /* private fields */ }Expand description
Sizes and store paths for the attribute paths of a lockfile.
Implementations§
Source§impl InputSizes
impl InputSizes
pub fn query(lock: &FlakeLock, nested_inputs: &[NestedInput]) -> Self
pub fn from_attr_entries( entries: impl IntoIterator<Item = (String, String, Option<u64>)>, ) -> Self
Sourcepub fn size_for(&self, path: &AttrPath) -> Option<u64>
pub fn size_for(&self, path: &AttrPath) -> Option<u64>
NAR size in bytes of the store path path resolves to.
Sourcepub fn store_path_for(&self, path: &AttrPath) -> Option<&str>
pub fn store_path_for(&self, path: &AttrPath) -> Option<&str>
Store path path resolves to.
Sourcepub fn label_for_store_path(&self, store_path: &str) -> Option<&str>
pub fn label_for_store_path(&self, store_path: &str) -> Option<&str>
Shortest attribute path resolving to store_path.
Trait Implementations§
Source§impl Debug for InputSizes
impl Debug for InputSizes
Auto Trait Implementations§
impl Freeze for InputSizes
impl RefUnwindSafe for InputSizes
impl Send for InputSizes
impl Sync for InputSizes
impl Unpin for InputSizes
impl UnsafeUnpin for InputSizes
impl UnwindSafe for InputSizes
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> 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