pub enum PointerOpForm {
Method,
AssocFn,
}Expand description
Whether an entry is an instance method or an associated function.
Variants§
Method
Instance method called on a pointer value: p.name(args).
AssocFn
Associated function called on the type: Ptr(T)::name(args).
Trait Implementations§
Source§impl Clone for PointerOpForm
impl Clone for PointerOpForm
Source§fn clone(&self) -> PointerOpForm
fn clone(&self) -> PointerOpForm
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 PointerOpForm
impl Debug for PointerOpForm
Source§impl PartialEq for PointerOpForm
impl PartialEq for PointerOpForm
impl Copy for PointerOpForm
impl Eq for PointerOpForm
impl StructuralPartialEq for PointerOpForm
Auto Trait Implementations§
impl Freeze for PointerOpForm
impl RefUnwindSafe for PointerOpForm
impl Send for PointerOpForm
impl Sync for PointerOpForm
impl Unpin for PointerOpForm
impl UnsafeUnpin for PointerOpForm
impl UnwindSafe for PointerOpForm
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