#[non_exhaustive]pub enum RenameError {
NotGetFn,
Reserved,
}
Expand description
Would-be-getter rename attempt failure result.
Holds details about the reason of the failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotGetFn
The function doesn’t start with get_
.
Reserved
The function uses a reserved name and can’t be renamed.
Implementations§
Source§impl RenameError
impl RenameError
pub fn is_not_get_fn(&self) -> bool
pub fn is_reserved(&self) -> bool
Trait Implementations§
Source§impl Clone for RenameError
impl Clone for RenameError
Source§fn clone(&self) -> RenameError
fn clone(&self) -> RenameError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RenameError
impl Debug for RenameError
Source§impl Display for RenameError
impl Display for RenameError
Source§impl Error for RenameError
impl Error for RenameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RenameError
impl PartialEq for RenameError
impl Copy for RenameError
impl StructuralPartialEq for RenameError
Auto Trait Implementations§
impl Freeze for RenameError
impl RefUnwindSafe for RenameError
impl Send for RenameError
impl Sync for RenameError
impl Unpin for RenameError
impl UnwindSafe for RenameError
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