pub struct SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0> { /* private fields */ }
Expand description
A builder for a switch
operation.
Implementations§
source§impl<'c> SwitchOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset>
impl<'c> SwitchOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset>
source§impl<'c, O1, O2, S0, S1, A0> SwitchOperationBuilder<'c, Unset, O1, O2, S0, S1, A0>
impl<'c, O1, O2, S0, S1, A0> SwitchOperationBuilder<'c, Unset, O1, O2, S0, S1, A0>
pub fn flag( self, flag: Value<'c, '_> ) -> SwitchOperationBuilder<'c, Set, O1, O2, S0, S1, A0>
source§impl<'c, O2, S0, S1, A0> SwitchOperationBuilder<'c, Set, Unset, O2, S0, S1, A0>
impl<'c, O2, S0, S1, A0> SwitchOperationBuilder<'c, Set, Unset, O2, S0, S1, A0>
pub fn default_operands( self, default_operands: &[Value<'c, '_>] ) -> SwitchOperationBuilder<'c, Set, Set, O2, S0, S1, A0>
source§impl<'c, S0, S1, A0> SwitchOperationBuilder<'c, Set, Set, Unset, S0, S1, A0>
impl<'c, S0, S1, A0> SwitchOperationBuilder<'c, Set, Set, Unset, S0, S1, A0>
pub fn case_operands( self, case_operands: &[Value<'c, '_>] ) -> SwitchOperationBuilder<'c, Set, Set, Set, S0, S1, A0>
source§impl<'c, O0, O1, O2, S1, A0> SwitchOperationBuilder<'c, O0, O1, O2, Unset, S1, A0>
impl<'c, O0, O1, O2, S1, A0> SwitchOperationBuilder<'c, O0, O1, O2, Unset, S1, A0>
pub fn default_destination( self, default_destination: &Block<'c> ) -> SwitchOperationBuilder<'c, O0, O1, O2, Set, S1, A0>
source§impl<'c, O0, O1, O2, A0> SwitchOperationBuilder<'c, O0, O1, O2, Set, Unset, A0>
impl<'c, O0, O1, O2, A0> SwitchOperationBuilder<'c, O0, O1, O2, Set, Unset, A0>
pub fn case_destinations( self, case_destinations: &[&Block<'c>] ) -> SwitchOperationBuilder<'c, O0, O1, O2, Set, Set, A0>
source§impl<'c, O0, O1, O2, S0, S1, A0> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
impl<'c, O0, O1, O2, S0, S1, A0> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
pub fn case_values( self, case_values: Attribute<'c> ) -> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
source§impl<'c, O0, O1, O2, S0, S1> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, Unset>
impl<'c, O0, O1, O2, S0, S1> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, Unset>
pub fn case_operand_segments( self, case_operand_segments: DenseI32ArrayAttribute<'c> ) -> SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, Set>
source§impl<'c> SwitchOperationBuilder<'c, Set, Set, Set, Set, Set, Set>
impl<'c> SwitchOperationBuilder<'c, Set, Set, Set, Set, Set, Set>
pub fn build(self) -> SwitchOperation<'c>
Auto Trait Implementations§
impl<'c, O0, O1, O2, S0, S1, A0> RefUnwindSafe for SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>where
A0: RefUnwindSafe,
O0: RefUnwindSafe,
O1: RefUnwindSafe,
O2: RefUnwindSafe,
S0: RefUnwindSafe,
S1: RefUnwindSafe,
impl<'c, O0, O1, O2, S0, S1, A0> !Send for SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
impl<'c, O0, O1, O2, S0, S1, A0> !Sync for SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
impl<'c, O0, O1, O2, S0, S1, A0> Unpin for SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>
impl<'c, O0, O1, O2, S0, S1, A0> UnwindSafe for SwitchOperationBuilder<'c, O0, O1, O2, S0, S1, A0>where
A0: UnwindSafe,
O0: UnwindSafe,
O1: UnwindSafe,
O2: UnwindSafe,
S0: UnwindSafe,
S1: UnwindSafe,
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