pub struct Module(/* private fields */);
Implementations§
Source§impl Module
impl Module
pub fn as_operation(&self) -> Operation ⓘ
pub fn new(loc: &Location) -> Self
pub fn from_parse(context: &Context, string: &StringRef) -> Self
pub fn from_operation(op: &Operation) -> Self
pub fn get(&self) -> &MlirModule
pub fn get_body(&self) -> Block ⓘ
pub fn get_context(&self) -> Context
pub fn get_mut(&mut self) -> &mut MlirModule
pub fn is_null(&self) -> bool
pub fn take_body(&mut self, block: &mut Block)
Trait Implementations§
Source§impl From<MlirModule> for Module
impl From<MlirModule> for Module
Source§fn from(module: MlirModule) -> Self
fn from(module: MlirModule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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