pub struct DenseArray(/* private fields */);
Implementations§
Source§impl DenseArray
impl DenseArray
pub fn new_bool(context: &Context, elements: &[bool]) -> Self
pub fn new_f32(context: &Context, elements: &[f32]) -> Self
pub fn new_f64(context: &Context, elements: &[f64]) -> Self
pub fn new_i8(context: &Context, elements: &[i8]) -> Self
pub fn new_i16(context: &Context, elements: &[i16]) -> Self
pub fn new_i32(context: &Context, elements: &[i32]) -> Self
pub fn new_i64(context: &Context, elements: &[i64]) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_element_bool(&self, i: isize) -> bool
pub fn get_element_f32(&self, i: isize) -> f32
pub fn get_element_f64(&self, i: isize) -> f64
pub fn get_element_i8(&self, i: isize) -> i8
pub fn get_element_i16(&self, i: isize) -> i16
pub fn get_element_i32(&self, i: isize) -> i32
pub fn get_element_i64(&self, i: isize) -> i64
pub fn get_layout(&self) -> Layout
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_type_id() -> TypeID
pub fn is(&self, layout: Layout) -> bool
pub fn is_bool(&self) -> bool
pub fn is_f32(&self) -> bool
pub fn is_f64(&self) -> bool
pub fn is_i8(&self) -> bool
pub fn is_i16(&self) -> bool
pub fn is_i32(&self) -> bool
pub fn is_i64(&self) -> bool
pub fn num_elements(&self) -> isize
Trait Implementations§
Source§impl Clone for DenseArray
impl Clone for DenseArray
Source§fn clone(&self) -> DenseArray
fn clone(&self) -> DenseArray
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<&Attribute> for DenseArray
impl From<&Attribute> for DenseArray
Source§impl From<(MlirAttribute, Layout)> for DenseArray
impl From<(MlirAttribute, Layout)> for DenseArray
Source§fn from((attr, layout): (MlirAttribute, Layout)) -> Self
fn from((attr, layout): (MlirAttribute, Layout)) -> Self
Converts to this type from the input type.
Source§impl From<Attribute> for DenseArray
impl From<Attribute> for DenseArray
Source§impl From<MlirAttribute> for DenseArray
impl From<MlirAttribute> for DenseArray
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for DenseArray
impl IAttribute for DenseArray
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn as_attribute(&self) -> Attribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for DenseArray
impl RefUnwindSafe for DenseArray
impl !Send for DenseArray
impl !Sync for DenseArray
impl Unpin for DenseArray
impl UnwindSafe for DenseArray
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