pub struct Dim(/* private fields */);
Implementations§
Source§impl Dim
impl Dim
Sourcepub fn new(
context: &Context,
source: &Value,
index: &Value,
loc: &Location,
) -> Self
pub fn new( context: &Context, source: &Value, index: &Value, loc: &Location, ) -> Self
The behavior for when the index is out of bounds is undefined; do not handle as the value is not statically known.
pub fn from(op: MlirOperation) -> Self
pub fn get(&self) -> &MlirOperation
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_result(&self) -> Value
Trait Implementations§
Source§impl IOperation for Dim
impl IOperation for Dim
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 Dim
impl RefUnwindSafe for Dim
impl !Send for Dim
impl !Sync for Dim
impl Unpin for Dim
impl UnwindSafe for Dim
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