pub struct OperationState(/* private fields */);
Implementations§
Source§impl OperationState
impl OperationState
pub fn new(name: &StringRef, loc: &Location) -> Self
pub fn add_attributes(&mut self, attributes: &[Named])
pub fn add_operands(&mut self, operands: &[Value])
pub fn add_regions(&mut self, regions: &[Region])
pub fn add_results(&mut self, types: &[Type])
pub fn add_successors(&mut self, successors: &[Block])
pub fn create_operation(&mut self) -> Operation ⓘ
pub fn get(&self) -> &MlirOperationState
pub fn get_mut(&mut self) -> &mut MlirOperationState
pub fn set_infer_result_type(&mut self)
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
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<MlirOperationState> for OperationState
impl From<MlirOperationState> for OperationState
Source§fn from(state: MlirOperationState) -> Self
fn from(state: MlirOperationState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationState
impl RefUnwindSafe for OperationState
impl !Send for OperationState
impl !Sync for OperationState
impl Unpin for OperationState
impl UnwindSafe for OperationState
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