pub struct IndexSwitch(/* private fields */);
Implementations§
Source§impl IndexSwitch
impl IndexSwitch
pub fn new( context: &Context, results: &[Type], value: &Value, cases: &[i64], loc: &Location, ) -> Self
pub fn get(&self) -> &MlirOperation
pub fn get_cases(&self) -> Cases
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_region(&self, i: isize) -> Region ⓘ
pub fn get_region_default(&self) -> Region ⓘ
Sourcepub fn num_cases(&self) -> isize
pub fn num_cases(&self) -> isize
Number of cases in the IndexSwitch operation, excluding the default case.
pub fn num_regions(&self) -> isize
Trait Implementations§
Source§impl Clone for IndexSwitch
impl Clone for IndexSwitch
Source§fn clone(&self) -> IndexSwitch
fn clone(&self) -> IndexSwitch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<MlirOperation> for IndexSwitch
impl From<MlirOperation> for IndexSwitch
Source§fn from(op: MlirOperation) -> Self
fn from(op: MlirOperation) -> Self
Converts to this type from the input type.
Source§impl IOperation for IndexSwitch
impl IOperation for IndexSwitch
fn get(&self) -> &MlirOperation
fn get_dialect(&self) -> Dialect
fn get_effects(&self) -> MemoryEffectList
fn get_interfaces(&self) -> &'static [Interface]
fn get_mut(&mut self) -> &mut MlirOperation
fn get_name(&self) -> &'static str
fn get_op(&self) -> OpRef
fn get_traits(&self) -> &'static [Trait]
fn as_operation(&self) -> Operation ⓘ
Auto Trait Implementations§
impl Freeze for IndexSwitch
impl RefUnwindSafe for IndexSwitch
impl !Send for IndexSwitch
impl !Sync for IndexSwitch
impl Unpin for IndexSwitch
impl UnwindSafe for IndexSwitch
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