pub struct OwnedInputFile {
pub workspace_absolute_path: String,
pub content_hash: [u8; 32],
}Expand description
One file resolved from a task’s inputs patterns, paired with the
hash of its content under the active hash function.
The workspace_absolute_path carries the workspace-absolute string
form (e.g. /lib_core/src/main.rs), suitable for direct conversion
into haz_cache::InputFile’s borrowed &str field. The cache
library re-sorts inputs into canonical order per CACHE-009, so the
order in which resolve_input_files appends matches is
unconstrained.
Fields§
§workspace_absolute_path: StringWorkspace-absolute path of the matched input file.
content_hash: [u8; 32]Content hash of the file’s bytes under the active hash function.
Trait Implementations§
Source§impl Clone for OwnedInputFile
impl Clone for OwnedInputFile
Source§fn clone(&self) -> OwnedInputFile
fn clone(&self) -> OwnedInputFile
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 OwnedInputFile
impl Debug for OwnedInputFile
Source§impl PartialEq for OwnedInputFile
impl PartialEq for OwnedInputFile
Source§fn eq(&self, other: &OwnedInputFile) -> bool
fn eq(&self, other: &OwnedInputFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OwnedInputFile
impl StructuralPartialEq for OwnedInputFile
Auto Trait Implementations§
impl Freeze for OwnedInputFile
impl RefUnwindSafe for OwnedInputFile
impl Send for OwnedInputFile
impl Sync for OwnedInputFile
impl Unpin for OwnedInputFile
impl UnsafeUnpin for OwnedInputFile
impl UnwindSafe for OwnedInputFile
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