pub struct Region<'c> { /* private fields */ }Expand description
A region.
Implementations§
Source§impl<'c> Region<'c>
impl<'c> Region<'c>
Sourcepub fn first_block(&self) -> Option<BlockRef<'c, '_>>
pub fn first_block(&self) -> Option<BlockRef<'c, '_>>
Returns the first block in a region.
Sourcepub fn insert_block_after(
&self,
one: BlockRef<'c, '_>,
other: Block<'c>,
) -> BlockRef<'c, '_>
pub fn insert_block_after( &self, one: BlockRef<'c, '_>, other: Block<'c>, ) -> BlockRef<'c, '_>
Inserts a block after another block.
Sourcepub fn insert_block_before(
&self,
one: BlockRef<'c, '_>,
other: Block<'c>,
) -> BlockRef<'c, '_>
pub fn insert_block_before( &self, one: BlockRef<'c, '_>, other: Block<'c>, ) -> BlockRef<'c, '_>
Inserts a block before another block.
Sourcepub fn append_block(&self, block: Block<'c>) -> BlockRef<'c, '_>
pub fn append_block(&self, block: Block<'c>) -> BlockRef<'c, '_>
Appends a block.
Sourcepub const fn into_raw(self) -> MlirRegion
pub const fn into_raw(self) -> MlirRegion
Converts a region into a raw object.
Trait Implementations§
impl Eq for Region<'_>
Auto Trait Implementations§
impl<'c> Freeze for Region<'c>
impl<'c> RefUnwindSafe for Region<'c>
impl<'c> !Send for Region<'c>
impl<'c> !Sync for Region<'c>
impl<'c> Unpin for Region<'c>
impl<'c> UnsafeUnpin for Region<'c>
impl<'c> UnwindSafe for Region<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more