pub struct SourceFile {
pub source: usize,
pub path: PathBuf,
pub relative: PathBuf,
pub sha256_input: Vec<u8>,
}Expand description
A file read while resolving a ruleset, with the bytes used to hash it.
Fields§
§source: usizeIndex of the source in the spec; always 0 for overlay files.
path: PathBufThe path as read.
relative: PathBufPath relative to the source root (the working directory for overlay
files), with / separators.
sha256_input: Vec<u8>The file’s bytes as read, hashed into the lockfile digest.
Trait Implementations§
Source§impl Clone for SourceFile
impl Clone for SourceFile
Source§impl Debug for SourceFile
impl Debug for SourceFile
Source§impl PartialEq for SourceFile
impl PartialEq for SourceFile
impl StructuralPartialEq for SourceFile
Auto Trait Implementations§
impl Forget for SourceFile
impl Freeze for SourceFile
impl Move for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnsafeUnpin for SourceFile
impl UnwindSafe for SourceFile
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