pub struct Type(/* private fields */);
Implementations§
Source§impl Type
impl Type
pub fn from_parse(context: &Context, s: &StringRef) -> Self
pub fn dump(&self)
pub fn get(&self) -> &MlirType
pub fn get_context(&self) -> Context
pub fn get_dialect(&self) -> Dialect
pub fn get_id(&self) -> TypeID
pub fn get_mut(&mut self) -> &mut MlirType
pub fn is_bool(&self) -> bool
pub fn is_complex(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_function(&self) -> bool
pub fn is_index(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_memref(&self) -> bool
pub fn is_none(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_opaque(&self) -> bool
pub fn is_ranked_tensor(&self) -> bool
pub fn is_shaped(&self) -> bool
pub fn is_tensor(&self) -> bool
pub fn is_tuple(&self) -> bool
Sourcepub fn is_unit(&self) -> bool
pub fn is_unit(&self) -> bool
Unit type is not exposed by the C API. However, we can use the indirectly constructed Unit type from the Unit attribute.
pub fn is_unranked_memref(&self) -> bool
pub fn is_unranked_tensor(&self) -> bool
pub fn is_vector(&self) -> bool
pub fn print(&self, state: &mut StringCallbackState)
Trait Implementations§
Source§impl From<&Type> for RankedTensor
impl From<&Type> for RankedTensor
Source§impl From<&Type> for UnrankedMemRef
impl From<&Type> for UnrankedMemRef
Source§impl From<&Type> for UnrankedTensor
impl From<&Type> for UnrankedTensor
Source§impl From<Type> for RankedTensor
impl From<Type> for RankedTensor
Source§impl From<Type> for UnrankedMemRef
impl From<Type> for UnrankedMemRef
Source§impl From<Type> for UnrankedTensor
impl From<Type> for UnrankedTensor
Source§impl IsPromotableTo<Type> for Type
impl IsPromotableTo<Type> for Type
fn is_promotable_to(&self, other: &Self) -> bool
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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