Enum rustc::traits::specialization_graph::Node
[−]
[src]
pub enum Node { Impl(DefId), Trait(DefId), }
Unstable (
rustc_private
)A node in the specialization graph is either an impl or a trait definition; either can serve as a source of item definitions. There is always exactly one trait definition node: the root.
Variants
Impl(DefId)
Unstable (
rustc_private
)Trait(DefId)
Unstable (
rustc_private
)Methods
impl<'a, 'gcx, 'tcx> Node
[src]
fn is_from_trait(&self) -> bool
fn items(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> NodeItems<'a, 'gcx>
Unstable (
rustc_private
)Iterate over the items defined directly by the given (impl or trait) node.
fn def_id(&self) -> DefId
Trait Implementations
Derived Implementations
impl Clone for Node
[src]
fn clone(&self) -> Node
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