Struct rustc::ty::MethodCall
[−]
[src]
pub struct MethodCall { pub expr_id: NodeId, pub autoderef: u32, }
rustc_private
)With method calls, we store some extra information in side tables (i.e method_map). We use MethodCall as a key to index into these tables instead of just directly using the expression's NodeId. The reason for this being that we may apply adjustments (coercions) with the resulting expression also needing to use the side tables. The problem with this is that we don't assign a separate NodeId to this new expression and so it would clash with the base expression if both needed to add to the side tables. Thus to disambiguate we also keep track of whether there's an adjustment in our key.
Fields
expr_id: NodeId
rustc_private
)autoderef: u32
rustc_private
)Methods
impl MethodCall
[src]
fn expr(id: NodeId) -> MethodCall
rustc_private
)fn autoderef(expr_id: NodeId, autoderef: u32) -> MethodCall
rustc_private
)Trait Implementations
impl Clone for MethodCall
[src]
fn clone(&self) -> MethodCall
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for MethodCall
[src]
impl PartialEq for MethodCall
[src]
fn eq(&self, __arg_0: &MethodCall) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MethodCall) -> bool
This method tests for !=
.
impl Eq for MethodCall
[src]
impl Hash for MethodCall
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Debug for MethodCall
[src]
impl Encodable for MethodCall
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for MethodCall
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MethodCall, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io