Enum fix_getters_rules::new_name::NewNameRule [−][src]
#[non_exhaustive] pub enum NewNameRule { Fixed, Regular, NoPrefix, Substituted, }
Expand description
Rule that applied to get the NewName
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Fixed name to comply to rules. Ex. get_mut_structure
-> structure_mut
.
Regular rule: removal of the prefix or replacement with is
.
No prefix for bool
getter. Ex. get_has_entry
-> has_entry
.
Applied substitution. Ex. get_mute
-> is_muted
.
Implementations
impl NewNameRule
[src]
impl NewNameRule
[src]pub fn is_fixed(&self) -> bool
[src]
pub fn is_fixed(&self) -> bool
[src]Returns whether renaming required fixing the name to comply with rules.
Ex. get_mut_structure
-> structure_mut
.
pub fn is_substituted(&self) -> bool
[src]
pub fn is_substituted(&self) -> bool
[src]Returns whether renaming required substituing (part) of the name.
Ex. get_mute
-> is_muted
.
pub fn is_regular(&self) -> bool
[src]
pub fn is_regular(&self) -> bool
[src]Returns whether renaming used the regular strategy.
Ex.:
get_name
->name
.get_active
->is_active
.
pub fn is_no_prefix(&self) -> bool
[src]
pub fn is_no_prefix(&self) -> bool
[src]Returns whether renaming didn’t use the is
prefix for bool
getter.
Ex.:
get_has_entry
->has_entry
.
Trait Implementations
impl Clone for NewNameRule
[src]
impl Clone for NewNameRule
[src]fn clone(&self) -> NewNameRule
[src]
fn clone(&self) -> NewNameRule
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for NewNameRule
[src]
impl Debug for NewNameRule
[src]impl Display for NewNameRule
[src]
impl Display for NewNameRule
[src]impl PartialEq<NewNameRule> for NewNameRule
[src]
impl PartialEq<NewNameRule> for NewNameRule
[src]impl Copy for NewNameRule
[src]
impl StructuralPartialEq for NewNameRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewNameRule
impl Send for NewNameRule
impl Sync for NewNameRule
impl Unpin for NewNameRule
impl UnwindSafe for NewNameRule
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more