Struct llvm_ir::terminator::Switch[][src]

pub struct Switch {
    pub operand: Operand,
    pub dests: Vec<(ConstantRef, Name)>,
    pub default_dest: Name,
    pub debugloc: Option<DebugLoc>,
}

See LLVM 12 docs on the 'switch' instruction

Fields

operand: Operanddests: Vec<(ConstantRef, Name)>default_dest: Namedebugloc: Option<DebugLoc>

Trait Implementations

impl Clone for Switch[src]

impl Debug for Switch[src]

impl Display for Switch[src]

impl From<Switch> for Terminator[src]

impl HasDebugLoc for Switch[src]

impl PartialEq<Switch> for Switch[src]

impl StructuralPartialEq for Switch[src]

impl TryFrom<Terminator> for Switch[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Typed for Switch[src]

Auto Trait Implementations

impl RefUnwindSafe for Switch[src]

impl Send for Switch[src]

impl Sync for Switch[src]

impl Unpin for Switch[src]

impl UnwindSafe for Switch[src]

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> ToString for T where
    T: Display + ?Sized
[src]

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.