pub struct SparseElements(/* private fields */);
Implementations§
Source§impl SparseElements
impl SparseElements
pub fn new(t: &Shaped, indices: &Attribute, values: &Attribute) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_indices(&self) -> Attribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_type_id() -> TypeID
pub fn get_values(&self) -> Attribute
Trait Implementations§
Source§impl Clone for SparseElements
impl Clone for SparseElements
Source§fn clone(&self) -> SparseElements
fn clone(&self) -> SparseElements
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 SparseElements
impl From<&Attribute> for SparseElements
Source§impl From<Attribute> for SparseElements
impl From<Attribute> for SparseElements
Source§impl From<MlirAttribute> for SparseElements
impl From<MlirAttribute> for SparseElements
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for SparseElements
impl IAttribute for SparseElements
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 SparseElements
impl RefUnwindSafe for SparseElements
impl !Send for SparseElements
impl !Sync for SparseElements
impl Unpin for SparseElements
impl UnwindSafe for SparseElements
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