pub enum MethodKind {
Constructor,
Method,
Get,
Set,
}Expand description
Distinguishes the four method-like class members.
Variants§
Constructor
A constructor.
Method
A regular method.
Get
A getter (get name() { ... }).
Set
A setter (set name(v) { ... }).
Trait Implementations§
Source§impl Clone for MethodKind
impl Clone for MethodKind
Source§fn clone(&self) -> MethodKind
fn clone(&self) -> MethodKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MethodKind
Source§impl Debug for MethodKind
impl Debug for MethodKind
Source§impl Display for MethodKind
impl Display for MethodKind
impl Eq for MethodKind
Source§impl PartialEq for MethodKind
impl PartialEq for MethodKind
impl StructuralPartialEq for MethodKind
Auto Trait Implementations§
impl Freeze for MethodKind
impl RefUnwindSafe for MethodKind
impl Send for MethodKind
impl Sync for MethodKind
impl Unpin for MethodKind
impl UnsafeUnpin for MethodKind
impl UnwindSafe for MethodKind
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