#[non_exhaustive]pub struct NewName { /* private fields */ }Expand description
Would-be-getter rename attempt sucessful result and details.
Holds details about what happened and assumptions on the return type.
Implementations§
Source§impl NewName
impl NewName
Sourcepub fn returns_bool(&self) -> ReturnsBool
pub fn returns_bool(&self) -> ReturnsBool
Returns current knowledge about the getter returning exactly one bool.
Sourcepub fn rule(&self) -> NewNameRule
pub fn rule(&self) -> NewNameRule
Returns the renaming rule that was used to rename the getter.
Sourcepub fn is_fixed(&self) -> bool
pub fn is_fixed(&self) -> bool
Returns whether renaming required fixing the name to comply with rules.
Ex. get_mut_structure -> structure_mut.
Sourcepub fn is_substituted(&self) -> bool
pub fn is_substituted(&self) -> bool
Returns whether renaming required substituing (part) of the name.
Ex. get_mute -> is_muted.
Sourcepub fn is_regular(&self) -> bool
pub fn is_regular(&self) -> bool
Returns whether renaming used the regular strategy.
Ex.:
get_name->name.get_active->is_active.
Sourcepub fn is_no_prefix(&self) -> bool
pub fn is_no_prefix(&self) -> bool
Returns whether renaming didn’t use the is prefix for bool getter.
Ex.:
get_has_entry->has_entry.
Trait Implementations§
impl StructuralPartialEq for NewName
Auto Trait Implementations§
impl Freeze for NewName
impl RefUnwindSafe for NewName
impl Send for NewName
impl Sync for NewName
impl Unpin for NewName
impl UnwindSafe for NewName
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