pub struct Entry<'a> {
pub path: Option<&'a Path>,
pub text: &'a str,
}Expand description
The program the pipeline was handed, and what to call it.
The path travels with the text rather than beside it, so a caller cannot name one file and hand over another’s source — the pairing is what every position in the entry file is resolved against.
Fields§
§path: Option<&'a Path>The file the text was read from, if it was read from one.
text: &'a strThe source itself.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'a>
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