[−][src]Struct rustc_passes::loops::CheckLoopVisitor

pub(in loops) struct CheckLoopVisitor<'a, 'hir> {
    sess: &'a Session,
    hir_map: Map<'hir>,
    cx: Context,
}

Fields

sess: &'a Sessionhir_map: Map<'hir>cx: Context

Implementations

impl<'a, 'hir> CheckLoopVisitor<'a, 'hir>[src]

pub(in loops) fn with_context<F>(
    &mut self,
    cx: Context,
    f: F
) where
    F: FnOnce(&mut CheckLoopVisitor<'a, 'hir>), 
[src]

pub(in loops) fn require_break_cx(
    &self,
    name: &str,
    span: Span
)
[src]

pub(in loops) fn require_label_in_labeled_block(
    &mut self,
    span: Span,
    label: &Destination,
    cf_type: &str
) -> bool
[src]

pub(in loops) fn emit_unlabled_cf_in_while_condition(
    &mut self,
    span: Span,
    cf_type: &str
)
[src]

Trait Implementations

impl<'a, 'hir> Clone for CheckLoopVisitor<'a, 'hir>[src]

impl<'a, 'hir> Copy for CheckLoopVisitor<'a, 'hir>[src]

impl<'a, 'hir> Visitor<'hir> for CheckLoopVisitor<'a, 'hir>[src]

type Map = Map<'hir>

Auto Trait Implementations

impl<'a, 'hir> !RefUnwindSafe for CheckLoopVisitor<'a, 'hir>

impl<'a, 'hir> !Send for CheckLoopVisitor<'a, 'hir>

impl<'a, 'hir> !Sync for CheckLoopVisitor<'a, 'hir>

impl<'a, 'hir> Unpin for CheckLoopVisitor<'a, 'hir>

impl<'a, 'hir> !UnwindSafe for CheckLoopVisitor<'a, 'hir>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.