Struct rustc::traits::specialize::specialization_graph::Children [−][src]
struct Children { nonblanket_impls: FxHashMap<SimplifiedType, Vec<DefId>>, blanket_impls: Vec<DefId>, }
🔬 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?
Children of a given impl, grouped into blanket/non-blanket varieties as is
done in TraitDef
.
Fields
nonblanket_impls: FxHashMap<SimplifiedType, Vec<DefId>>
🔬 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?
Impls of the trait.
blanket_impls: Vec<DefId>
🔬 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?
Blanket impls associated with the trait.
Methods
impl<'a, 'gcx, 'tcx> Children
[src]
impl<'a, 'gcx, 'tcx> Children
fn new() -> Children
[src]
fn new() -> Children
🔬 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 insert_blindly(&mut self, tcx: TyCtxt<'a, 'gcx, 'tcx>, impl_def_id: DefId)
[src]
fn insert_blindly(&mut self, tcx: TyCtxt<'a, 'gcx, 'tcx>, impl_def_id: DefId)
🔬 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?
Insert an impl into this set of children without comparing to any existing impls
fn remove_existing(&mut self, tcx: TyCtxt<'a, 'gcx, 'tcx>, impl_def_id: DefId)
[src]
fn remove_existing(&mut self, tcx: TyCtxt<'a, 'gcx, 'tcx>, impl_def_id: DefId)
🔬 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?
Remove an impl from this set of children. Used when replacing an impl with a parent. The impl must be present in the list of children already.
fn insert(
&mut self,
tcx: TyCtxt<'a, 'gcx, 'tcx>,
impl_def_id: DefId,
simplified_self: Option<SimplifiedType>
) -> Result<Inserted, OverlapError>
[src]
fn insert(
&mut self,
tcx: TyCtxt<'a, 'gcx, 'tcx>,
impl_def_id: DefId,
simplified_self: Option<SimplifiedType>
) -> Result<Inserted, OverlapError>
🔬 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?
Attempt to insert an impl into this set of children, while comparing for specialization relationships.
ⓘImportant traits for Box<W>fn iter(&mut self) -> Box<Iterator<Item = DefId>>
[src]
fn iter(&mut self) -> Box<Iterator<Item = DefId>>
🔬 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?
ⓘImportant traits for Box<W>fn filtered(&mut self, sty: SimplifiedType) -> Box<Iterator<Item = DefId>>
[src]
fn filtered(&mut self, sty: SimplifiedType) -> Box<Iterator<Item = DefId>>
🔬 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 Encodable for Children
[src]
impl Encodable for Children
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 Children
[src]
impl Decodable for Children
fn decode<__D: Decoder>(d: &mut __D) -> Result<Children, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Children, __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<'a> HashStable<StableHashingContext<'a>> for Children
[src]
impl<'a> HashStable<StableHashingContext<'a>> for Children
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?