Struct melior::dialect::DialectHandle
source · pub struct DialectHandle { /* private fields */ }
Expand description
A dialect handle.
Implementations§
source§impl DialectHandle
impl DialectHandle
sourcepub fn sparse_tensor() -> Self
pub fn sparse_tensor() -> Self
Creates a sparse_tensor
dialect handle.
sourcepub fn insert_dialect(&self, registry: &DialectRegistry)
pub fn insert_dialect(&self, registry: &DialectRegistry)
Inserts a dialect into a dialect registry.
sourcepub fn load_dialect<'c>(&self, context: &'c Context) -> Dialect<'c>
pub fn load_dialect<'c>(&self, context: &'c Context) -> Dialect<'c>
Loads a dialect into a context.
sourcepub fn register_dialect(&self, context: &Context)
pub fn register_dialect(&self, context: &Context)
Registers a dialect into a context.
sourcepub const unsafe fn from_raw(handle: MlirDialectHandle) -> Self
pub const unsafe fn from_raw(handle: MlirDialectHandle) -> Self
sourcepub const fn to_raw(self) -> MlirDialectHandle
pub const fn to_raw(self) -> MlirDialectHandle
Converts a dialect handle into a raw object.
Trait Implementations§
source§impl Clone for DialectHandle
impl Clone for DialectHandle
source§fn clone(&self) -> DialectHandle
fn clone(&self) -> DialectHandle
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 Debug for DialectHandle
impl Debug for DialectHandle
impl Copy for DialectHandle
Auto Trait Implementations§
impl RefUnwindSafe for DialectHandle
impl !Send for DialectHandle
impl !Sync for DialectHandle
impl Unpin for DialectHandle
impl UnwindSafe for DialectHandle
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