[][src]Struct gf::pivot::fragment::UnsealedFragmentVarSizes

pub struct UnsealedFragmentVarSizes { /* fields omitted */ }

⚪ Sizes of variables defined in an unsealed fragment.

Implementations

impl UnsealedFragmentVarSizes[src]

pub fn new(
    module: &UnsealedModule,
    fragment: &UnsealedFragment,
    cfg: &UnsealedFragmentCfg<Forward>
) -> Self
[src]

Build the variable sizes of an unsealed fragment.

Errors

  • Panics if an object referenced in the fragment does not exist: basic block, constant, fragment, or space.
  • Panics on mismatch between number of fragment inputs and entry basic block inputs.
  • Panics on mismatch between number of fragment outputs and exit basic block false branch outputs.
  • Panics on mismatch between number of CALL statement inputs and target fragment inputs.
  • Panics on mismatch between number of CALL statement outputs and target fragment outputs.
  • Panics on mismatch between number of MIX statement inputs and outputs.
  • Panics on mismatch between number of edge inputs and outputs.

pub fn get(&self, var: Var) -> &FlatLattice<VarSize>[src]

Return variable size.

If no information is available, returns ⊤. If there are conflicting size requirements, returns ⊥.

Trait Implementations

impl Clone for UnsealedFragmentVarSizes[src]

impl Debug for UnsealedFragmentVarSizes[src]

Auto Trait Implementations

impl RefUnwindSafe for UnsealedFragmentVarSizes

impl Send for UnsealedFragmentVarSizes

impl Sync for UnsealedFragmentVarSizes

impl Unpin for UnsealedFragmentVarSizes

impl UnwindSafe for UnsealedFragmentVarSizes

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.