pub struct DenseResourceElements(/* private fields */);
Implementations§
Source§impl DenseResourceElements
impl DenseResourceElements
pub fn new( t: &Shaped, name: &StringRef, data: &mut [c_void], user_data: &mut [c_void], alignment: usize, is_mut: bool, deleter: Option<DeleterFn>, ) -> Self
pub fn new_bool(t: &Shaped, name: &StringRef, elements: &[bool]) -> Self
pub fn new_f32(t: &Shaped, name: &StringRef, elements: &[f32]) -> Self
pub fn new_f64(t: &Shaped, name: &StringRef, elements: &[f64]) -> Self
pub fn new_i8(t: &Shaped, name: &StringRef, elements: &[i8]) -> Self
pub fn new_i16(t: &Shaped, name: &StringRef, elements: &[i16]) -> Self
pub fn new_i32(t: &Shaped, name: &StringRef, elements: &[i32]) -> Self
pub fn new_i64(t: &Shaped, name: &StringRef, elements: &[i64]) -> Self
pub fn new_u8(t: &Shaped, name: &StringRef, elements: &[u8]) -> Self
pub fn new_u16(t: &Shaped, name: &StringRef, elements: &[u16]) -> Self
pub fn new_u32(t: &Shaped, name: &StringRef, elements: &[u32]) -> Self
pub fn new_u64(t: &Shaped, name: &StringRef, elements: &[u64]) -> Self
pub fn from_checked(attr_: MlirAttribute, layout: Layout) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_bool(&self, i: isize) -> bool
pub fn get_f32(&self, i: isize) -> f32
pub fn get_f64(&self, i: isize) -> f64
pub fn get_i8(&self, i: isize) -> i8
pub fn get_i16(&self, i: isize) -> i16
pub fn get_i32(&self, i: isize) -> i32
pub fn get_i64(&self, i: isize) -> i64
pub fn get_layout(&self) -> Layout
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_u8(&self, i: isize) -> u8
pub fn get_u16(&self, i: isize) -> u16
pub fn get_u32(&self, i: isize) -> u32
pub fn get_u64(&self, i: isize) -> u64
Trait Implementations§
Source§impl Clone for DenseResourceElements
impl Clone for DenseResourceElements
Source§fn clone(&self) -> DenseResourceElements
fn clone(&self) -> DenseResourceElements
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<(MlirAttribute, Layout)> for DenseResourceElements
impl From<(MlirAttribute, Layout)> for DenseResourceElements
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 IAttribute for DenseResourceElements
impl IAttribute for DenseResourceElements
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 DenseResourceElements
impl RefUnwindSafe for DenseResourceElements
impl !Send for DenseResourceElements
impl !Sync for DenseResourceElements
impl Unpin for DenseResourceElements
impl UnwindSafe for DenseResourceElements
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