pub struct Getter {
pub name: String,
pub new_name: NewName,
pub line: usize,
}
Expand description
Getter
helper.
A Getter
is a function for which the renaming rules defined in crate
fix-getters-rules
hold.
Fields§
§name: String
§new_name: NewName
§line: usize
Implementations§
Source§impl Getter
impl Getter
Sourcepub fn try_new(
name: String,
returns_bool: impl Into<ReturnsBool> + Copy,
line: usize,
) -> Result<Self, GetterError>
pub fn try_new( name: String, returns_bool: impl Into<ReturnsBool> + Copy, line: usize, ) -> Result<Self, GetterError>
Attempts to build a Getter
from the provided data.
pub fn returns_bool(&self) -> ReturnsBool
pub fn set_returns_bool(&mut self, returns_bool: impl Into<ReturnsBool>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Getter
impl RefUnwindSafe for Getter
impl Send for Getter
impl Sync for Getter
impl Unpin for Getter
impl UnwindSafe for Getter
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