pub struct RegionRef<'c, 'a> { /* private fields */ }
Expand description
A reference to a region.
Implementations§
source§impl<'c, 'a> RegionRef<'c, 'a>
impl<'c, 'a> RegionRef<'c, 'a>
sourcepub unsafe fn from_raw(raw: MlirRegion) -> Self
pub unsafe fn from_raw(raw: MlirRegion) -> Self
sourcepub unsafe fn from_option_raw(raw: MlirRegion) -> Option<Self>
pub unsafe fn from_option_raw(raw: MlirRegion) -> Option<Self>
Methods from Deref<Target = 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.
Trait Implementations§
source§impl<'c, 'a> PartialEq for RegionRef<'c, 'a>
impl<'c, 'a> PartialEq for RegionRef<'c, 'a>
impl<'c, 'a> Copy for RegionRef<'c, 'a>
impl<'c, 'a> Eq for RegionRef<'c, 'a>
Auto Trait Implementations§
impl<'c, 'a> RefUnwindSafe for RegionRef<'c, 'a>
impl<'c, 'a> !Send for RegionRef<'c, 'a>
impl<'c, 'a> !Sync for RegionRef<'c, 'a>
impl<'c, 'a> Unpin for RegionRef<'c, 'a>
impl<'c, 'a> UnwindSafe for RegionRef<'c, 'a>
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