[][src]Struct gf::pivot::Constant

pub struct Constant {
    pub metadata: Metadata,
    pub value: BitVec,
    pub is_extern: bool,
}

Constant that can be loaded into a variable or used as a metadata value.

Fields

metadata: Metadata

Metadata associated with the constant.

value: BitVec

Constant value.

is_extern: bool

True iff this is an external constant.

Methods

impl Constant[src]

pub fn new() -> Self[src]

Construct an empty constant.

Trait Implementations

impl<T: Into<BitVec>> From<T> for Constant[src]

impl Clone for Constant[src]

impl Default for Constant[src]

impl Debug for Constant[src]

Auto Trait Implementations

impl Send for Constant

impl Sync for Constant

impl Unpin for Constant

impl UnwindSafe for Constant

impl RefUnwindSafe for Constant

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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