pub struct Function(/* private fields */);
Implementations§
Source§impl Function
impl Function
pub fn new(context: &Context, inputs: &[Type], results: &[Type]) -> Self
pub fn from_type(t: &Type) -> Self
pub fn get(&self) -> &MlirType
pub fn get_input(&self, i: isize) -> Type
pub fn get_mut(&mut self) -> &mut MlirType
pub fn get_result(&self, i: isize) -> Type
pub fn get_type_id() -> TypeID
pub fn num_inputs(&self) -> isize
pub fn num_results(&self) -> isize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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