pub struct StridedLayout(/* private fields */);
Implementations§
Source§impl StridedLayout
impl StridedLayout
pub fn new(context: &Context, offset: i64, strides: &[i64]) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_offset(&self) -> i64
pub fn get_stride(&self, i: isize) -> Result<i64, String>
pub fn get_type_id() -> TypeID
pub fn is_dynamic_offset(&self) -> bool
pub fn is_dynamic_stride(&self, i: isize) -> Result<bool, String>
pub fn is_empty(&self) -> bool
pub fn num_strides(&self) -> isize
pub fn rank(&self) -> isize
Trait Implementations§
Source§impl Clone for StridedLayout
impl Clone for StridedLayout
Source§fn clone(&self) -> StridedLayout
fn clone(&self) -> StridedLayout
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 StridedLayout
impl From<&Attribute> for StridedLayout
Source§impl From<&StridedLayout> for MemoryLayout
impl From<&StridedLayout> for MemoryLayout
Source§fn from(layout: &StridedLayout) -> Self
fn from(layout: &StridedLayout) -> Self
Converts to this type from the input type.
Source§impl From<Attribute> for StridedLayout
impl From<Attribute> for StridedLayout
Source§impl From<MlirAttribute> for StridedLayout
impl From<MlirAttribute> for StridedLayout
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl From<StridedLayout> for MemoryLayout
impl From<StridedLayout> for MemoryLayout
Source§fn from(layout: StridedLayout) -> Self
fn from(layout: StridedLayout) -> Self
Converts to this type from the input type.
Source§impl IAttribute for StridedLayout
impl IAttribute for StridedLayout
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 StridedLayout
impl RefUnwindSafe for StridedLayout
impl !Send for StridedLayout
impl !Sync for StridedLayout
impl Unpin for StridedLayout
impl UnwindSafe for StridedLayout
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