Struct rustc::hir::BodyId [−][src]
pub struct BodyId { pub node_id: NodeId, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
node_id: NodeId
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl DepGraphSafe for BodyId
[src]
impl DepGraphSafe for BodyId
A BodyId
on its own doesn't give access to any particular state.
You must fetch the state from the various maps or generate
on-demand queries, all of which create reads.
impl Copy for BodyId
[src]
impl Copy for BodyId
impl Clone for BodyId
[src]
impl Clone for BodyId
fn clone(&self) -> BodyId
[src]
fn clone(&self) -> BodyId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for BodyId
[src]
impl PartialEq for BodyId
fn eq(&self, other: &BodyId) -> bool
[src]
fn eq(&self, other: &BodyId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BodyId) -> bool
[src]
fn ne(&self, other: &BodyId) -> bool
This method tests for !=
.
impl Eq for BodyId
[src]
impl Eq for BodyId
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl PartialOrd for BodyId
[src]
impl PartialOrd for BodyId
fn partial_cmp(&self, other: &BodyId) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &BodyId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &BodyId) -> bool
[src]
fn lt(&self, other: &BodyId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &BodyId) -> bool
[src]
fn le(&self, other: &BodyId) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &BodyId) -> bool
[src]
fn gt(&self, other: &BodyId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &BodyId) -> bool
[src]
fn ge(&self, other: &BodyId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for BodyId
[src]
impl Ord for BodyId
fn cmp(&self, other: &BodyId) -> Ordering
[src]
fn cmp(&self, other: &BodyId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Encodable for BodyId
[src]
impl Encodable for BodyId
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for BodyId
[src]
impl Decodable for BodyId
fn decode<__D: Decoder>(d: &mut __D) -> Result<BodyId, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<BodyId, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Hash for BodyId
[src]
impl Hash for BodyId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for BodyId
[src]
impl Debug for BodyId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> HashStable<StableHashingContext<'a>> for BodyId
[src]
impl<'a> HashStable<StableHashingContext<'a>> for BodyId
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<'a> ToStableHashKey<StableHashingContext<'a>> for BodyId
[src]
impl<'a> ToStableHashKey<StableHashingContext<'a>> for BodyId
type KeyType = (DefPathHash, ItemLocalId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn to_stable_hash_key(
&self,
hcx: &StableHashingContext<'a>
) -> (DefPathHash, ItemLocalId)
[src]
fn to_stable_hash_key(
&self,
hcx: &StableHashingContext<'a>
) -> (DefPathHash, ItemLocalId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?