pub struct RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> { /* private fields */ }
Expand description

A builder for a rescale operation.

Implementations§

source§

impl<'c> RescaleOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset, Unset, Unset, Unset>

source

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

source§

impl<'c, O0, A0, A1, A2, A3, A4, A5, A6> RescaleOperationBuilder<'c, Unset, O0, A0, A1, A2, A3, A4, A5, A6>

source

pub fn output( self, output: Type<'c> ) -> RescaleOperationBuilder<'c, Set, O0, A0, A1, A2, A3, A4, A5, A6>

source§

impl<'c, T0, A0, A1, A2, A3, A4, A5, A6> RescaleOperationBuilder<'c, T0, Unset, A0, A1, A2, A3, A4, A5, A6>

source

pub fn input( self, input: Value<'c, '_> ) -> RescaleOperationBuilder<'c, T0, Set, A0, A1, A2, A3, A4, A5, A6>

source§

impl<'c, T0, O0, A1, A2, A3, A4, A5, A6> RescaleOperationBuilder<'c, T0, O0, Unset, A1, A2, A3, A4, A5, A6>

source

pub fn input_zp( self, input_zp: IntegerAttribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, Set, A1, A2, A3, A4, A5, A6>

source§

impl<'c, T0, O0, A0, A2, A3, A4, A5, A6> RescaleOperationBuilder<'c, T0, O0, A0, Unset, A2, A3, A4, A5, A6>

source

pub fn output_zp( self, output_zp: IntegerAttribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, Set, A2, A3, A4, A5, A6>

source§

impl<'c, T0, O0, A0, A1, A3, A4, A5, A6> RescaleOperationBuilder<'c, T0, O0, A0, A1, Unset, A3, A4, A5, A6>

source

pub fn multiplier( self, multiplier: DenseI32ArrayAttribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, A1, Set, A3, A4, A5, A6>

source§

impl<'c, T0, O0, A0, A1, A2, A4, A5, A6> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, Unset, A4, A5, A6>

source

pub fn shift( self, shift: DenseI32ArrayAttribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, Set, A4, A5, A6>

source§

impl<'c, T0, O0, A0, A1, A2, A3, A5, A6> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, Unset, A5, A6>

source

pub fn scale_32( self, scale_32: Attribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, Set, A5, A6>

source§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A6> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, Unset, A6>

source

pub fn double_round( self, double_round: Attribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, Set, A6>

source§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, Unset>

source

pub fn per_channel( self, per_channel: Attribute<'c> ) -> RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, Set>

source§

impl<'c> RescaleOperationBuilder<'c, Set, Set, Set, Set, Set, Set, Set, Set, Set>

source

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

Auto Trait Implementations§

§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> RefUnwindSafe for RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6>

§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> !Send for RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6>

§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> !Sync for RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6>

§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> Unpin for RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6>
where A0: Unpin, A1: Unpin, A2: Unpin, A3: Unpin, A4: Unpin, A5: Unpin, A6: Unpin, O0: Unpin, T0: Unpin,

§

impl<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6> UnwindSafe for RescaleOperationBuilder<'c, T0, O0, A0, A1, A2, A3, A4, A5, A6>

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.