pub struct Options<'a> {
pub defines: Vec<(String, String)>,
pub prelude: Option<String>,
pub includes: Option<&'a mut dyn IncludeResolver>,
}Expand description
Settings for one parse.
Fields§
§defines: Vec<(String, String)>Macros defined before the source, as name and value.
prelude: Option<String>Text that is preprocessed and parsed before the source, as the file
<prelude>. Its macros apply to the source.
includes: Option<&'a mut dyn IncludeResolver>Finds #include files. Without one, every #include is an error.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Options<'a>
impl<'a> !Send for Options<'a>
impl<'a> !Sync for Options<'a>
impl<'a> !UnwindSafe for Options<'a>
impl<'a> Forget for Options<'a>
impl<'a> Freeze for Options<'a>where
*const u8 is !null: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<u8>: Freeze,
&'a mut dyn IncludeResolver: Freeze,
impl<'a> Move for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'a>where
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'a mut dyn IncludeResolver: UnsafeUnpin,
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