pub enum DotAccessResolution {
Unresolved,
StructField {
is_exported: bool,
declaring_type: Option<Symbol>,
},
TupleStructField {
is_newtype: bool,
},
TupleElement,
PackageMember {
definition: Option<Symbol>,
},
EnumVariant {
definition: Symbol,
},
InstanceMethod {
is_exported: bool,
receiver_coercion: Option<ReceiverCoercion>,
definition: Option<Symbol>,
},
InstanceMethodValue {
is_exported: bool,
is_pointer_receiver: bool,
definition: Option<Symbol>,
},
StaticMethod {
is_exported: bool,
definition: Symbol,
},
}Variants§
Unresolved
StructField
TupleStructField
TupleElement
PackageMember
EnumVariant
InstanceMethod
InstanceMethodValue
StaticMethod
Implementations§
Source§impl DotAccessResolution
impl DotAccessResolution
pub fn kind(&self) -> Option<DotAccessKind>
pub fn declaring_type(&self) -> Option<&Symbol>
pub fn receiver_coercion(&self) -> Option<ReceiverCoercion>
pub fn definition(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for DotAccessResolution
impl Clone for DotAccessResolution
Source§fn clone(&self) -> DotAccessResolution
fn clone(&self) -> DotAccessResolution
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 DotAccessResolution
impl Debug for DotAccessResolution
impl Eq for DotAccessResolution
Source§impl PartialEq for DotAccessResolution
impl PartialEq for DotAccessResolution
impl StructuralPartialEq for DotAccessResolution
Auto Trait Implementations§
impl Freeze for DotAccessResolution
impl RefUnwindSafe for DotAccessResolution
impl Send for DotAccessResolution
impl Sync for DotAccessResolution
impl Unpin for DotAccessResolution
impl UnsafeUnpin for DotAccessResolution
impl UnwindSafe for DotAccessResolution
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