[][src]Trait rustc::middle::expr_use_visitor::Delegate

pub trait Delegate<'tcx> {
    fn consume(&mut self, cmt: &cmt_<'tcx>, mode: ConsumeMode);
fn borrow(&mut self, cmt: &cmt_<'tcx>, bk: BorrowKind);
fn mutate(&mut self, assignee_cmt: &cmt_<'tcx>); }
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

This trait defines the callbacks you can expect to receive when employing the ExprUseVisitor.

Required methods

fn consume(&mut self, cmt: &cmt_<'tcx>, mode: ConsumeMode)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn borrow(&mut self, cmt: &cmt_<'tcx>, bk: BorrowKind)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn mutate(&mut self, assignee_cmt: &cmt_<'tcx>)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Implementors

Loading content...