pub struct PathRead {
pub path: Vec<String>,
pub read: Box<dyn Read + Send>,
}
Expand description
Combination of a module path and a corresponding reader.
Fields§
§path: Vec<String>
Module path, for example ["a", "b", "c"]
for the file path "a/b/c.dk"
read: Box<dyn Read + Send>
Reader for the content of the module
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PathRead
impl Send for PathRead
impl !Sync for PathRead
impl Unpin for PathRead
impl !UnwindSafe for PathRead
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