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

pub struct UnsealedFragmentDefsUses { /* fields omitted */ }

⚪ Defined and used variables of an unsealed fragment.

Implementations

impl UnsealedFragmentDefsUses[src]

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

Build the defined and used variables of an unsealed fragment.

pub fn vars(&self) -> &[Var][src]

Return all variables defined and/or used in the fragment in increasing order of their numbers.

pub fn defs(&self, var: Var) -> &[UnsealedLoc][src]

Return definitions of a variable.

Tail locations correspond to inputs of basic blocks.

pub fn uses(&self, var: Var) -> &[UnsealedLoc][src]

Return uses of a variable.

Tail locations correspond to outputs of basic blocks.

Trait Implementations

impl Clone for UnsealedFragmentDefsUses[src]

impl Debug for UnsealedFragmentDefsUses[src]

Auto Trait Implementations

impl RefUnwindSafe for UnsealedFragmentDefsUses

impl Send for UnsealedFragmentDefsUses

impl Sync for UnsealedFragmentDefsUses

impl Unpin for UnsealedFragmentDefsUses

impl UnwindSafe for UnsealedFragmentDefsUses

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.