Struct fix_getters_rules::new_name::NewName [−][src]
#[non_exhaustive]pub struct NewName { /* fields omitted */ }
Expand description
Would-be-getter rename attempt sucessful result and details.
Holds details about what happened and assumptions on the return type.
Implementations
impl NewName
[src]
impl NewName
[src]pub fn returns_bool(&self) -> ReturnsBool
[src]
pub fn returns_bool(&self) -> ReturnsBool
[src]Returns current knowledge about the getter returning exactly one bool
.
pub fn rule(&self) -> NewNameRule
[src]
pub fn rule(&self) -> NewNameRule
[src]Returns the renaming rule that was used to rename the getter.
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 StructuralPartialEq for NewName
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewName
impl Send for NewName
impl Sync for NewName
impl Unpin for NewName
impl UnwindSafe for NewName
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