[][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.


metadata: Metadata

Metadata associated with the constant.

value: BitVec

Constant value.

is_extern: bool

True iff this is an external constant.


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>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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