pub enum MethodRefTarget {
Type(Path),
Expr(Box<Expr>),
Super(Span),
SuperFromType {
type_name: Path,
dot_span: Span,
super_span: Span,
},
}Expand description
The target of a method reference.
Variants§
Type(Path)
TypeName::method
Expr(Box<Expr>)
expr::method
Super(Span)
super::method
SuperFromType
TypeName.super::method
Implementations§
Trait Implementations§
Source§impl Clone for MethodRefTarget
impl Clone for MethodRefTarget
Source§fn clone(&self) -> MethodRefTarget
fn clone(&self) -> MethodRefTarget
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 moreSource§impl Debug for MethodRefTarget
impl Debug for MethodRefTarget
impl Eq for MethodRefTarget
Source§impl Hash for MethodRefTarget
impl Hash for MethodRefTarget
Source§impl PartialEq for MethodRefTarget
impl PartialEq for MethodRefTarget
Source§fn eq(&self, other: &MethodRefTarget) -> bool
fn eq(&self, other: &MethodRefTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MethodRefTarget
Auto Trait Implementations§
impl Freeze for MethodRefTarget
impl RefUnwindSafe for MethodRefTarget
impl Send for MethodRefTarget
impl Sync for MethodRefTarget
impl Unpin for MethodRefTarget
impl UnsafeUnpin for MethodRefTarget
impl UnwindSafe for MethodRefTarget
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