pub struct Attribute<'c> { /* private fields */ }
Expand description
An attribute.
Implementations§
source§impl<'c> Attribute<'c>
impl<'c> Attribute<'c>
sourcepub unsafe fn from_raw(raw: MlirAttribute) -> Self
pub unsafe fn from_raw(raw: MlirAttribute) -> Self
sourcepub unsafe fn from_option_raw(raw: MlirAttribute) -> Option<Self>
pub unsafe fn from_option_raw(raw: MlirAttribute) -> Option<Self>
Trait Implementations§
source§impl<'c> AttributeLike<'c> for Attribute<'c>
impl<'c> AttributeLike<'c> for Attribute<'c>
source§fn to_raw(&self) -> MlirAttribute
fn to_raw(&self) -> MlirAttribute
Converts a attribute into a raw object.
source§fn context(&self) -> ContextRef<'c>
fn context(&self) -> ContextRef<'c>
Returns a context.
source§fn is_affine_map(&self) -> bool
fn is_affine_map(&self) -> bool
Returns
true
if an attribute is affine map.source§fn is_dense_bool_array(&self) -> bool
fn is_dense_bool_array(&self) -> bool
Returns
true
if an attribute is dense bool array.source§fn is_dense_elements(&self) -> bool
fn is_dense_elements(&self) -> bool
Returns
true
if an attribute is dense elements.source§fn is_dense_f32_array(&self) -> bool
fn is_dense_f32_array(&self) -> bool
Returns
true
if an attribute is dense f32 array.source§fn is_dense_f64_array(&self) -> bool
fn is_dense_f64_array(&self) -> bool
Returns
true
if an attribute is dense f64 array.source§fn is_dense_fp_elements(&self) -> bool
fn is_dense_fp_elements(&self) -> bool
Returns
true
if an attribute is dense fp elements.source§fn is_dense_i16_array(&self) -> bool
fn is_dense_i16_array(&self) -> bool
Returns
true
if an attribute is dense i16 array.source§fn is_dense_i32_array(&self) -> bool
fn is_dense_i32_array(&self) -> bool
Returns
true
if an attribute is dense i32 array.source§fn is_dense_i64_array(&self) -> bool
fn is_dense_i64_array(&self) -> bool
Returns
true
if an attribute is dense i64 array.source§fn is_dense_i8_array(&self) -> bool
fn is_dense_i8_array(&self) -> bool
Returns
true
if an attribute is dense i8 array.source§fn is_dense_int_elements(&self) -> bool
fn is_dense_int_elements(&self) -> bool
Returns
true
if an attribute is dense int elements.source§fn is_dictionary(&self) -> bool
fn is_dictionary(&self) -> bool
Returns
true
if an attribute is dictionary.source§fn is_elements(&self) -> bool
fn is_elements(&self) -> bool
Returns
true
if an attribute is elements.source§fn is_flat_symbol_ref(&self) -> bool
fn is_flat_symbol_ref(&self) -> bool
Returns
true
if an attribute is flat symbol ref.source§fn is_integer(&self) -> bool
fn is_integer(&self) -> bool
Returns
true
if an attribute is integer.source§fn is_integer_set(&self) -> bool
fn is_integer_set(&self) -> bool
Returns
true
if an attribute is integer set.source§fn is_sparse_elements(&self) -> bool
fn is_sparse_elements(&self) -> bool
Returns
true
if an attribute is sparse elements.source§fn is_sparse_tensor_encoding_attr(&self) -> bool
fn is_sparse_tensor_encoding_attr(&self) -> bool
Returns
true
if an attribute is sparse tensor encoding attr.source§fn is_strided_layout(&self) -> bool
fn is_strided_layout(&self) -> bool
Returns
true
if an attribute is strided layout.source§fn is_symbol_ref(&self) -> bool
fn is_symbol_ref(&self) -> bool
Returns
true
if an attribute is symbol ref.source§impl<'c> From<ArrayAttribute<'c>> for Attribute<'c>
impl<'c> From<ArrayAttribute<'c>> for Attribute<'c>
source§fn from(value: ArrayAttribute<'c>) -> Self
fn from(value: ArrayAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<BoolAttribute<'c>> for Attribute<'c>
impl<'c> From<BoolAttribute<'c>> for Attribute<'c>
source§fn from(value: BoolAttribute<'c>) -> Self
fn from(value: BoolAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<DenseElementsAttribute<'c>> for Attribute<'c>
impl<'c> From<DenseElementsAttribute<'c>> for Attribute<'c>
source§fn from(value: DenseElementsAttribute<'c>) -> Self
fn from(value: DenseElementsAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<DenseI32ArrayAttribute<'c>> for Attribute<'c>
impl<'c> From<DenseI32ArrayAttribute<'c>> for Attribute<'c>
source§fn from(value: DenseI32ArrayAttribute<'c>) -> Self
fn from(value: DenseI32ArrayAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<DenseI64ArrayAttribute<'c>> for Attribute<'c>
impl<'c> From<DenseI64ArrayAttribute<'c>> for Attribute<'c>
source§fn from(value: DenseI64ArrayAttribute<'c>) -> Self
fn from(value: DenseI64ArrayAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<FlatSymbolRefAttribute<'c>> for Attribute<'c>
impl<'c> From<FlatSymbolRefAttribute<'c>> for Attribute<'c>
source§fn from(value: FlatSymbolRefAttribute<'c>) -> Self
fn from(value: FlatSymbolRefAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<FloatAttribute<'c>> for Attribute<'c>
impl<'c> From<FloatAttribute<'c>> for Attribute<'c>
source§fn from(value: FloatAttribute<'c>) -> Self
fn from(value: FloatAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<IntegerAttribute<'c>> for Attribute<'c>
impl<'c> From<IntegerAttribute<'c>> for Attribute<'c>
source§fn from(value: IntegerAttribute<'c>) -> Self
fn from(value: IntegerAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<StringAttribute<'c>> for Attribute<'c>
impl<'c> From<StringAttribute<'c>> for Attribute<'c>
source§fn from(value: StringAttribute<'c>) -> Self
fn from(value: StringAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> From<TypeAttribute<'c>> for Attribute<'c>
impl<'c> From<TypeAttribute<'c>> for Attribute<'c>
source§fn from(value: TypeAttribute<'c>) -> Self
fn from(value: TypeAttribute<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> PartialEq for Attribute<'c>
impl<'c> PartialEq for Attribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for ArrayAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for ArrayAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for BoolAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for BoolAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for DenseElementsAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for DenseElementsAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for DenseI32ArrayAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for DenseI32ArrayAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for DenseI64ArrayAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for DenseI64ArrayAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for FlatSymbolRefAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for FlatSymbolRefAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for FloatAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for FloatAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for IntegerAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for IntegerAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for StringAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for StringAttribute<'c>
source§impl<'c> TryFrom<Attribute<'c>> for TypeAttribute<'c>
impl<'c> TryFrom<Attribute<'c>> for TypeAttribute<'c>
impl<'c> Copy for Attribute<'c>
impl<'c> Eq for Attribute<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for Attribute<'c>
impl<'c> !Send for Attribute<'c>
impl<'c> !Sync for Attribute<'c>
impl<'c> Unpin for Attribute<'c>
impl<'c> UnwindSafe for Attribute<'c>
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