pub struct ParseContextExt {
pub source: String,
pub flags: ParseFlagsExt,
pub filename: Option<String>,
}Expand description
A parse context carrying source and flags.
Fields§
§source: StringThe source text
flags: ParseFlagsExtParse flags
filename: Option<String>Source filename (for error messages)
Implementations§
Source§impl ParseContextExt
impl ParseContextExt
Sourcepub fn with_filename(self, name: &str) -> Self
pub fn with_filename(self, name: &str) -> Self
Set the filename.
Sourcepub fn with_flags(self, flags: ParseFlagsExt) -> Self
pub fn with_flags(self, flags: ParseFlagsExt) -> Self
Set flags.
Auto Trait Implementations§
impl Freeze for ParseContextExt
impl RefUnwindSafe for ParseContextExt
impl Send for ParseContextExt
impl Sync for ParseContextExt
impl Unpin for ParseContextExt
impl UnsafeUnpin for ParseContextExt
impl UnwindSafe for ParseContextExt
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