Enum llvm_bitcode::bitstream::Operand[][src]

pub enum Operand {
    Literal(u64),
    Fixed(u8),
    Vbr(u8),
    Array(Box<Operand>),
    Char6,
    Blob,
}

Variants

Literal(u64)

A literal value (emitted as a VBR8 field)

Fixed(u8)

A fixed-width field

Vbr(u8)

A VBR-encoded value with the provided chunk width

Array(Box<Operand>)

An array of values. This expects another operand encoded directly after indicating the element type. The array will begin with a vbr6 value indicating the length of the following array.

Char6

A char6-encoded ASCII character

Blob

Emitted as a vbr6 value, padded to a 32-bit boundary and then an array of 8-bit objects

Implementations

impl Operand[src]

pub fn is_payload(&self) -> bool[src]

Whether this case is payload

pub fn is_literal(&self) -> bool[src]

Whether this case is the literal case

pub fn is_array(&self) -> bool[src]

pub fn is_blob(&self) -> bool[src]

pub fn encoded_kind(&self) -> u8[src]

The llvm::BitCodeAbbrevOp::Encoding value this enum case represents.

  • note: Must match the encoding in http://llvm.org/docs/BitCodeFormat.html#define-abbrev-encoding

Trait Implementations

impl Clone for Operand[src]

impl Debug for Operand[src]

Auto Trait Implementations

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.