[−][src]Struct gf::pivot::fragment::Fragment
🟢 Fragment in a sealed module.
Implementations
impl<'a> Fragment<'a>
[src]
pub unsafe fn from_unsealed(
module: &'a Module,
id: FragmentId,
unsealed: &'a UnsealedFragment
) -> Self
[src]
module: &'a Module,
id: FragmentId,
unsealed: &'a UnsealedFragment
) -> Self
Wrap an unsealed fragment.
pub fn module(&self) -> &'a Module
[src]
Return parent module.
pub fn id(&self) -> FragmentId
[src]
Return ID.
pub fn as_unsealed(&self) -> &'a UnsealedFragment
[src]
Return the unsealed fragment.
pub fn sealing_data(&self) -> &'a FragmentSealingData
[src]
Return sealing data.
pub fn metadata(&self) -> Metadata<'a>
[src]
Return metadata.
pub fn entry(&self) -> BasicBlock<'a>
[src]
Return entry basic block.
pub fn exit(&self) -> BasicBlock<'a>
[src]
Return exit basic block.
pub fn input_sizes(&self) -> &'a [VarSize]
[src]
Return input variable sizes.
pub fn output_sizes(&self) -> &'a [VarSize]
[src]
Return output variable sizes.
pub fn cfg(&self) -> FragmentCfg<'a, Forward>
[src]
Return the fragment forward CFG.
pub fn defs_uses(&self) -> FragmentDefsUses<'a>
[src]
Return the defined and used variables of the fragment.
pub fn dom_tree(&self) -> FragmentDomTree<'a, Forward>
[src]
Return the fragment forward dominator tree.
pub fn is_pure(&self) -> bool
[src]
Return whether the fragment is pure.
pub fn var_size(&self, var: Var) -> VarSize
[src]
Trait Implementations
impl<'a> Clone for Fragment<'a>
[src]
impl<'a> Copy for Fragment<'a>
[src]
impl<'a> Eq for Fragment<'a>
[src]
impl<'a> Hash for Fragment<'a>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> PartialEq<Fragment<'a>> for Fragment<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Fragment<'a>
impl<'a> Send for Fragment<'a>
impl<'a> Sync for Fragment<'a>
impl<'a> Unpin for Fragment<'a>
impl<'a> UnwindSafe for Fragment<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,