Struct hir::ir::NodeId
[−]
[src]
pub struct NodeId(_);
Methods
impl NodeId
[src]
impl NodeId
pub fn is_default(&self) -> bool
[src]
pub fn is_default(&self) -> bool
The NodeId
returned by Default
is often used as a placeholder for
something that needs its own NodeId
but it hasn't been computed for
yet.
Trait Implementations
impl Debug for NodeId
[src]
impl Debug for NodeId
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for NodeId
[src]
impl Default for NodeId
impl Copy for NodeId
[src]
impl Copy for NodeId
impl Clone for NodeId
[src]
impl Clone for NodeId
fn clone(&self) -> NodeId
[src]
fn clone(&self) -> NodeId
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 NodeId
[src]
impl PartialEq for NodeId
fn eq(&self, __arg_0: &NodeId) -> bool
[src]
fn eq(&self, __arg_0: &NodeId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodeId) -> bool
[src]
fn ne(&self, __arg_0: &NodeId) -> bool
This method tests for !=
.
impl Eq for NodeId
[src]
impl Eq for NodeId
impl Hash for NodeId
[src]
impl Hash for NodeId
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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 HeapSizeOf for NodeId
[src]
impl HeapSizeOf for NodeId
fn heap_size_of_children(&self) -> usize
[src]
fn heap_size_of_children(&self) -> usize
Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more