Struct darklua_core::Options
source · pub struct Options { /* private fields */ }
Implementations§
source§impl Options
impl Options
pub fn new(input: impl Into<PathBuf>) -> Self
pub fn with_configuration_at(self, config: impl Into<PathBuf>) -> Self
pub fn with_configuration(self, config: Configuration) -> Self
pub fn with_output(self, output: impl Into<PathBuf>) -> Self
pub fn fail_fast(self) -> Self
pub fn with_generator_override( self, generator: impl Into<GeneratorParameters> ) -> Self
pub fn input(&self) -> &Path
pub fn output(&self) -> Option<&Path>
pub fn should_fail_fast(&self) -> bool
pub fn configuration_path(&self) -> Option<&Path>
pub fn generator_override(&self) -> Option<&GeneratorParameters>
pub fn take_configuration(&mut self) -> Option<Configuration>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more