pub struct ParserGenOptions {
pub nt_value: NTValue,
pub include_alts: bool,
pub headers: Vec<String>,
pub used_libs: StructLibs,
pub gen_wrapper: bool,
pub gen_span_params: bool,
pub gen_token_enums: bool,
pub lib_crate: LexigramCrate,
pub indent: usize,
pub types_indent: usize,
pub listener_indent: usize,
}Fields§
§nt_value: NTValue§include_alts: bool§headers: Vec<String>§used_libs: StructLibs§gen_wrapper: boolgenerates the wrapper source code
gen_span_params: boolgenerates code to give the location of nonterminals and tokens as extra parameters of listener methods
gen_token_enums: bool§lib_crate: LexigramCrate§indent: usizesource code indentation of the wrapper, in number of space characters
types_indent: usizesource code indentation of the template for the user types
listener_indent: usizesource code indentation of the template for the listener implementation
Trait Implementations§
Source§impl Clone for ParserGenOptions
impl Clone for ParserGenOptions
Source§fn clone(&self) -> ParserGenOptions
fn clone(&self) -> ParserGenOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserGenOptions
impl Debug for ParserGenOptions
Auto Trait Implementations§
impl Freeze for ParserGenOptions
impl RefUnwindSafe for ParserGenOptions
impl Send for ParserGenOptions
impl Sync for ParserGenOptions
impl Unpin for ParserGenOptions
impl UnsafeUnpin for ParserGenOptions
impl UnwindSafe for ParserGenOptions
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
Source§impl<S> BuildFrom<S> for S
impl<S> BuildFrom<S> for S
Source§fn build_from(source: S) -> S
fn build_from(source: S) -> S
Converts to this type from the input type.
Source§impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
Source§fn build_into(self) -> T
fn build_into(self) -> T
Calls T::from(self) to convert a S into a T.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
Source§type Error = <T as TryBuildFrom<S>>::Error
type Error = <T as TryBuildFrom<S>>::Error
The type returned in the event of a conversion error.
Source§fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
Performs the conversion.