Struct fix_getters_utils::getter::Getter [−][src]
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
impl Getter
[src]
impl Getter
[src]pub fn try_new(
name: String,
returns_bool: impl Into<ReturnsBool> + Copy,
line: usize
) -> Result<Self, GetterError>
[src]
pub fn try_new(
name: String,
returns_bool: impl Into<ReturnsBool> + Copy,
line: usize
) -> Result<Self, GetterError>
[src]Attempts to build a Getter
from the provided data.
pub fn returns_bool(&self) -> ReturnsBool
[src]
pub fn set_returns_bool(&mut self, returns_bool: impl Into<ReturnsBool>)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Getter
impl Send for Getter
impl Sync for Getter
impl Unpin for Getter
impl UnwindSafe for Getter
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