pub struct IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0> { /* private fields */ }
Expand description

A builder for an index_switch operation.

Implementations§

source§

impl<'c> IndexSwitchOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset>

source

pub fn new(context: &'c Context, location: Location<'c>) -> Self

source§

impl<'c, O0, R0, R1, A0> IndexSwitchOperationBuilder<'c, Unset, O0, R0, R1, A0>

source

pub fn results( self, results: &[Type<'c>] ) -> IndexSwitchOperationBuilder<'c, Set, O0, R0, R1, A0>

source§

impl<'c, T0, R0, R1, A0> IndexSwitchOperationBuilder<'c, T0, Unset, R0, R1, A0>

source

pub fn arg( self, arg: Value<'c, '_> ) -> IndexSwitchOperationBuilder<'c, T0, Set, R0, R1, A0>

source§

impl<'c, T0, O0, R1, A0> IndexSwitchOperationBuilder<'c, T0, O0, Unset, R1, A0>

source

pub fn default_region( self, default_region: Region<'c> ) -> IndexSwitchOperationBuilder<'c, T0, O0, Set, R1, A0>

source§

impl<'c, T0, O0, A0> IndexSwitchOperationBuilder<'c, T0, O0, Set, Unset, A0>

source

pub fn case_regions( self, case_regions: Vec<Region<'c>> ) -> IndexSwitchOperationBuilder<'c, T0, O0, Set, Set, A0>

source§

impl<'c, T0, O0, R0, R1> IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, Unset>

source

pub fn cases( self, cases: Attribute<'c> ) -> IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, Set>

source§

impl<'c> IndexSwitchOperationBuilder<'c, Set, Set, Set, Set, Set>

source

pub fn build(self) -> IndexSwitchOperation<'c>

Auto Trait Implementations§

§

impl<'c, T0, O0, R0, R1, A0> RefUnwindSafe for IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0>

§

impl<'c, T0, O0, R0, R1, A0> !Send for IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0>

§

impl<'c, T0, O0, R0, R1, A0> !Sync for IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0>

§

impl<'c, T0, O0, R0, R1, A0> Unpin for IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0>
where A0: Unpin, O0: Unpin, R0: Unpin, R1: Unpin, T0: Unpin,

§

impl<'c, T0, O0, R0, R1, A0> UnwindSafe for IndexSwitchOperationBuilder<'c, T0, O0, R0, R1, A0>
where A0: UnwindSafe, O0: UnwindSafe, R0: UnwindSafe, R1: UnwindSafe, T0: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.