pub struct PreprocessOptions {
pub mask_comments: bool,
pub mask_strings: bool,
}Expand description
Preprocessing options.
mask_* controls whether the corresponding token class is replaced with spaces.
Regardless of masking, the preprocessor may still track strings when masking comments, so that comment markers inside strings do not start a comment.
Fields§
§mask_comments: bool§mask_strings: boolImplementations§
Source§impl PreprocessOptions
impl PreprocessOptions
pub fn none() -> Self
pub fn comments_only() -> Self
pub fn strings_only() -> Self
pub fn comments_and_strings() -> Self
Trait Implementations§
Source§impl Clone for PreprocessOptions
impl Clone for PreprocessOptions
Source§fn clone(&self) -> PreprocessOptions
fn clone(&self) -> PreprocessOptions
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 PreprocessOptions
impl Debug for PreprocessOptions
Source§impl PartialEq for PreprocessOptions
impl PartialEq for PreprocessOptions
impl Copy for PreprocessOptions
impl Eq for PreprocessOptions
impl StructuralPartialEq for PreprocessOptions
Auto Trait Implementations§
impl Freeze for PreprocessOptions
impl RefUnwindSafe for PreprocessOptions
impl Send for PreprocessOptions
impl Sync for PreprocessOptions
impl Unpin for PreprocessOptions
impl UnsafeUnpin for PreprocessOptions
impl UnwindSafe for PreprocessOptions
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