[−][src]Enum gf::pivot::basic_block::Loc
🟢 Location in a sealed basic block.
Variants
Stmt(Stmt<'a>)
The location is at a statement.
Tail(BasicBlock<'a>)
The location is at the tail of a basic block.
Implementations
impl<'a> Loc<'a>
[src]
pub unsafe fn from_unsealed(module: &'a Module, unsealed: UnsealedLoc) -> Self
[src]
Wrap an unsealed location.
pub fn at_entry_of(fragment: Fragment<'a>) -> Self
[src]
Return location at the entry of a fragment.
pub fn at_exit_of(fragment: Fragment<'a>) -> Self
[src]
Return location at the exit of a fragment.
pub fn at_start_of(basic_block: BasicBlock<'a>) -> Self
[src]
Return location at the start of a basic block.
pub fn at_end_of(basic_block: BasicBlock<'a>) -> Self
[src]
Return location at the end of a basic block.
pub fn module(&self) -> &'a Module
[src]
Return parent module.
pub fn fragment(&self) -> Fragment<'a>
[src]
Return parent fragment.
pub fn basic_block(&self) -> BasicBlock<'a>
[src]
Return parent basic block.
pub fn stmt(&self) -> Option<Stmt<'a>>
[src]
Return statement, None
for a tail location.
pub fn next(&self) -> Option<Self>
[src]
Return next location.
pub fn prev(&self) -> Option<Self>
[src]
Return previous location.
Trait Implementations
impl<'a> Clone for Loc<'a>
[src]
impl<'a> Copy for Loc<'a>
[src]
impl<'a> Eq for Loc<'a>
[src]
impl<'a> Hash for Loc<'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<Loc<'a>> for Loc<'a>
[src]
impl<'a> StructuralEq for Loc<'a>
[src]
impl<'a> StructuralPartialEq for Loc<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Loc<'a>
impl<'a> Send for Loc<'a>
impl<'a> Sync for Loc<'a>
impl<'a> Unpin for Loc<'a>
impl<'a> UnwindSafe for Loc<'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>,