pub struct SourceFile {
pub path: String,
pub is_symlink: bool,
pub bytes: Option<Vec<u8>>,
}Expand description
A file delivered by a source: its graph-relative path and, when read, its raw bytes.
Fields§
§path: StringPath relative to the graph root, with forward slashes.
is_symlink: boolWhether this entry is a symlink (stat’d once during the walk).
bytes: Option<Vec<u8>>Raw content. None when the file exists but its content is intentionally
not read — a symlink whose target resolves outside the graph root, or a
file that could not be read.
Auto Trait Implementations§
impl Freeze 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