[][src]Enum rustpython_vm::bytecode::Constant

pub enum Constant {
    Integer {
        value: BigInt,
    },
    Float {
        value: f64,
    },
    Complex {
        value: Complex<f64>,
    },
    Boolean {
        value: bool,
    },
    String {
        value: String,
    },
    Bytes {
        value: Vec<u8>,
    },
    Code {
        code: Box<CodeObject>,
    },
    Tuple {
        elements: Vec<Constant>,
    },
    None,
    Ellipsis,
}

Variants

Integer

Fields of Integer

value: BigInt
Float

Fields of Float

value: f64
Complex

Fields of Complex

value: Complex<f64>
Boolean

Fields of Boolean

value: bool
String

Fields of String

value: String
Bytes

Fields of Bytes

value: Vec<u8>
Code

Fields of Code

code: Box<CodeObject>
Tuple

Fields of Tuple

elements: Vec<Constant>
None
Ellipsis

Trait Implementations

impl Clone for Constant[src]

impl Debug for Constant[src]

impl<'de> Deserialize<'de> for Constant[src]

impl Display for Constant[src]

impl PartialEq<Constant> for Constant[src]

impl Serialize for Constant[src]

impl StructuralPartialEq for Constant[src]

Auto Trait Implementations

impl RefUnwindSafe for Constant

impl Send for Constant

impl Sync for Constant

impl Unpin for Constant

impl UnwindSafe for Constant

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,