Struct fix_getters_rules::new_name::NewName [−][src]
Would-be-getter rename attempt sucessful result and details.
Holds details about what happened and assumptions on the return type.
Implementations
impl NewName
[src]
pub fn as_str(&self) -> &str
[src]
Returns the new name.
pub fn unwrap(self) -> String
[src]
pub fn returns_bool(&self) -> ReturnsBool
[src]
Returns current knowledge about the getter returning exactly one bool
.
pub fn rule(&self) -> NewNameRule
[src]
Returns the renaming rule that was used to rename the getter.
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]
Returns whether renaming required substituing (part) of the name.
Ex. get_mute
-> is_muted
.
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]
Returns whether renaming didn’t use the is
prefix for bool
getter.
Ex.:
get_has_entry
->has_entry
.
Trait Implementations
impl Debug for NewName
[src]
impl Display for NewName
[src]
impl PartialEq<NewName> for NewName
[src]
impl<T: AsRef<str>> PartialEq<T> for NewName
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,