[][src]Struct gf::pivot::Fragment

pub struct Fragment {
    pub metadata: Metadata,
    pub entry: Option<BasicBlockId>,
    pub exit: Option<BasicBlockId>,
    pub input_sizes: Vec<VarSize>,
    pub output_sizes: Vec<VarSize>,
}

Single-entry, single-exit code fragment.

Fields

metadata: Metadata

Metadata associated with the fragment.

entry: Option<BasicBlockId>

Entry basic block.

exit: Option<BasicBlockId>

Exit basic block.

input_sizes: Vec<VarSize>

Vector of bit sizes of fragment input tuple items.

output_sizes: Vec<VarSize>

Vector of bit sizes of fragment output tuple items.

Methods

impl Fragment[src]

pub fn new() -> Self[src]

Construct an empty fragment.

Trait Implementations

impl Clone for Fragment[src]

impl Default for Fragment[src]

impl Debug for Fragment[src]

Auto Trait Implementations

impl Send for Fragment

impl Sync for Fragment

impl Unpin for Fragment

impl UnwindSafe for Fragment

impl RefUnwindSafe for Fragment

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]