pub struct ExpandIfFeature;Implementations§
Source§impl ExpandIfFeature
impl ExpandIfFeature
pub fn register(options: &ParserOptions, features: &mut Vec<SharedFeature>)
Trait Implementations§
Source§impl MinifyFeature for ExpandIfFeature
impl MinifyFeature for ExpandIfFeature
fn ordering(&self) -> i32
fn process_mode(&self) -> u32
fn run( &mut self, arena: &AstArena, declaration: u32, _options: &ParserOptions, _parent: u32, _context: &mut MinifyContext, _mode: u32, ) -> FeatureResult
Source§fn has_cleanup(&self) -> bool
fn has_cleanup(&self) -> bool
true if the feature has a
cleanup() methodfn cleanup( &mut self, _arena: &AstArena, _ast: u32, _options: &ParserOptions, _context: &mut MinifyContext, _mode: u32, )
Auto Trait Implementations§
impl Forget for ExpandIfFeature
impl Freeze for ExpandIfFeature
impl Move for ExpandIfFeature
impl RefUnwindSafe for ExpandIfFeature
impl Send for ExpandIfFeature
impl Sync for ExpandIfFeature
impl Unpin for ExpandIfFeature
impl UnsafeUnpin for ExpandIfFeature
impl UnwindSafe for ExpandIfFeature
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