pub struct IncludeRequest<'a> {
pub spec: &'a str,
pub from_name: &'a str,
pub from_id: Option<&'a str>,
pub stack: Vec<String>,
pub size_remaining: Option<usize>,
pub location: Location,
}Expand description
A request passed to the include resolver to resolve an include directive.
Fields§
§spec: &'a strThe include specification (e.g. the path or URL).
from_name: &'a strThe name of the file or source currently being parsed (top of the include stack).
from_id: Option<&'a str>The canonical identity of the source currently being parsed, or None for the root parser.
stack: Vec<String>The full chain of inclusions leading to this request, with the current file at the end.
size_remaining: Option<usize>Remaining decoded byte quota available for additional reader-backed input, if configured.
location: LocationThe location in the source file where the include was requested.
Auto Trait Implementations§
impl<'a> Freeze for IncludeRequest<'a>
impl<'a> RefUnwindSafe for IncludeRequest<'a>
impl<'a> Send for IncludeRequest<'a>
impl<'a> Sync for IncludeRequest<'a>
impl<'a> Unpin for IncludeRequest<'a>
impl<'a> UnsafeUnpin for IncludeRequest<'a>
impl<'a> UnwindSafe for IncludeRequest<'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