Struct darklua_core::rules::RenameVariables
source · [−]pub struct RenameVariables { /* private fields */ }Expand description
Rename all identifiers to small and meaningless names.
Implementations
sourceimpl RenameVariables
impl RenameVariables
pub fn new<I: IntoIterator<Item = String>>(iter: I) -> Self
pub fn with_function_names(self) -> Self
Trait Implementations
sourceimpl Debug for RenameVariables
impl Debug for RenameVariables
sourceimpl Default for RenameVariables
impl Default for RenameVariables
sourceimpl FlawlessRule for RenameVariables
impl FlawlessRule for RenameVariables
fn flawless_process(&self, block: &mut Block, _: &mut Context)
sourceimpl PartialEq<RenameVariables> for RenameVariables
impl PartialEq<RenameVariables> for RenameVariables
sourcefn eq(&self, other: &RenameVariables) -> bool
fn eq(&self, other: &RenameVariables) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RenameVariables) -> bool
fn ne(&self, other: &RenameVariables) -> bool
This method tests for !=.
sourceimpl RuleConfiguration for RenameVariables
impl RuleConfiguration for RenameVariables
sourcefn configure(
&mut self,
properties: RuleProperties
) -> Result<(), RuleConfigurationError>
fn configure(
&mut self,
properties: RuleProperties
) -> Result<(), RuleConfigurationError>
The rule deserializer will construct the default rule and then send the properties through this method to modify the behavior of the rule. Read more
sourcefn serialize_to_properties(&self) -> RuleProperties
fn serialize_to_properties(&self) -> RuleProperties
For implementing the serialize trait on the Rule trait, this method should return all properties that differs from their default value. Read more
sourcefn has_properties(&self) -> bool
fn has_properties(&self) -> bool
Returns true if the rule has at least one property.
impl Eq for RenameVariables
impl StructuralEq for RenameVariables
impl StructuralPartialEq for RenameVariables
Auto Trait Implementations
impl RefUnwindSafe for RenameVariables
impl Send for RenameVariables
impl Sync for RenameVariables
impl Unpin for RenameVariables
impl UnwindSafe for RenameVariables
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more