Struct rustc::traits::query::type_op::custom::CustomTypeOp [−][src]
pub struct CustomTypeOp<F, G> { closure: F, description: G, }
🔬 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
closure: F
🔬 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?
description: G
🔬 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?
Methods
impl<F, G> CustomTypeOp<F, G>
[src]
impl<F, G> CustomTypeOp<F, G>
pub fn new<'gcx, 'tcx, R>(closure: F, description: G) -> Self where
F: FnOnce(&InferCtxt<'_, 'gcx, 'tcx>) -> Fallible<InferOk<'tcx, R>>,
G: Fn() -> String,
[src]
pub fn new<'gcx, 'tcx, R>(closure: F, description: G) -> Self where
F: FnOnce(&InferCtxt<'_, 'gcx, 'tcx>) -> Fallible<InferOk<'tcx, R>>,
G: Fn() -> String,
🔬 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<'gcx, 'tcx, F, R, G> TypeOp<'gcx, 'tcx> for CustomTypeOp<F, G> where
F: for<'a, 'cx> FnOnce(&'a InferCtxt<'cx, 'gcx, 'tcx>) -> Fallible<InferOk<'tcx, R>>,
G: Fn() -> String,
[src]
impl<'gcx, 'tcx, F, R, G> TypeOp<'gcx, 'tcx> for CustomTypeOp<F, G> where
F: for<'a, 'cx> FnOnce(&'a InferCtxt<'cx, 'gcx, 'tcx>) -> Fallible<InferOk<'tcx, R>>,
G: Fn() -> String,
type Output = R
🔬 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 fully_perform(
self,
infcx: &InferCtxt<'_, 'gcx, 'tcx>
) -> Fallible<(Self::Output, Option<Rc<Vec<QueryRegionConstraint<'tcx>>>>)>
[src]
fn fully_perform(
self,
infcx: &InferCtxt<'_, 'gcx, 'tcx>
) -> Fallible<(Self::Output, Option<Rc<Vec<QueryRegionConstraint<'tcx>>>>)>
🔬 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?
Processes the operation and all resulting obligations, returning the final result along with any region constraints (they will be given over to the NLL region solver).
impl<F, G> Debug for CustomTypeOp<F, G> where
G: Fn() -> String,
[src]
impl<F, G> Debug for CustomTypeOp<F, G> where
G: Fn() -> String,
Auto Trait Implementations
impl<F, G> Send for CustomTypeOp<F, G> where
F: Send,
G: Send,
impl<F, G> Send for CustomTypeOp<F, G> where
F: Send,
G: Send,
impl<F, G> Sync for CustomTypeOp<F, G> where
F: Sync,
G: Sync,
impl<F, G> Sync for CustomTypeOp<F, G> where
F: Sync,
G: Sync,