pub struct SourceFile {
pub path: String,
pub kind: NodeKind,
pub bytes: Option<Vec<u8>>,
}Expand description
An entry delivered by a source: its graph-relative path, kind, and — for files — its raw bytes.
Fields§
§path: StringPath relative to the graph root, with forward slashes.
kind: NodeKindThe kind of entry, from lstat.
bytes: Option<Vec<u8>>Raw content. Some only for files (and None for one that could not be
read). Symlinks and directories are untrackable and always carry None.
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