Struct rustc::mir::repr::Terminator [] [src]

pub struct Terminator<'tcx> {
    pub span: Span,
    pub scope: ScopeId,
    pub kind: TerminatorKind<'tcx>,
}
Unstable (rustc_private)

Fields

span: Span
Unstable (rustc_private)
scope: ScopeId
Unstable (rustc_private)
kind: TerminatorKind<'tcx>
Unstable (rustc_private)

Methods

impl<'tcx> Terminator<'tcx>
[src]

fn successors(&self) -> Cow<[BasicBlock]>

fn successors_mut(&mut self) -> Vec<&mut BasicBlock>

Trait Implementations

Derived Implementations

impl<'tcx> Decodable for Terminator<'tcx>
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Terminator<'tcx>, __D::Error>

impl<'tcx> Encodable for Terminator<'tcx>
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<'tcx> Debug for Terminator<'tcx>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'tcx> Clone for Terminator<'tcx>
[src]

fn clone(&self) -> Terminator<'tcx>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more