Struct clippy_lints::consts::ConstEvalLateContext [−][src]
pub struct ConstEvalLateContext<'a, 'tcx: 'a> { /* fields omitted */ }
Methods
impl<'c, 'cc> ConstEvalLateContext<'c, 'cc>
[src]
impl<'c, 'cc> ConstEvalLateContext<'c, 'cc>
pub fn expr(&mut self, e: &Expr) -> Option<Constant>
[src]
pub fn expr(&mut self, e: &Expr) -> Option<Constant>
simple constant folding: Insert an expression, get a constant or none.
Auto Trait Implementations
impl<'a, 'tcx> !Send for ConstEvalLateContext<'a, 'tcx>
impl<'a, 'tcx> !Send for ConstEvalLateContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for ConstEvalLateContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for ConstEvalLateContext<'a, 'tcx>