pub enum WriterExpand<Out: NumericVector> {
Parallel(<ParallelWriter<Out> as RudaType>::ExpandType),
Perpendicular(<PerpendicularWriter<Out> as RudaType>::ExpandType),
}Variants§
Parallel(<ParallelWriter<Out> as RudaType>::ExpandType)
Perpendicular(<PerpendicularWriter<Out> as RudaType>::ExpandType)
Implementations§
Source§impl<Out: NumericVector> WriterExpand<Out>
impl<Out: NumericVector> WriterExpand<Out>
pub fn __expand_field_8_Parallel_index_0( &self, ) -> <ParallelWriter<Out> as RudaType>::ExpandType
pub fn __expand_field_8_Parallel_reverse_0( &self, ) -> <ParallelWriter<Out> as RudaType>::ExpandType
pub fn __expand_field_13_Perpendicular_index_0( &self, ) -> <PerpendicularWriter<Out> as RudaType>::ExpandType
pub fn __expand_field_13_Perpendicular_reverse_0( &self, ) -> <PerpendicularWriter<Out> as RudaType>::ExpandType
Source§impl<Out: NumericVector> WriterExpand<Out>
impl<Out: NumericVector> WriterExpand<Out>
pub fn __expand_write_method<P: ReducePrecision, I: ReduceInstruction<P>>( self, scope: &mut Scope, local_index: <usize as RudaType>::ExpandType, accumulator: <Accumulator<P> as RudaType>::ExpandType, inst: <I as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_commit_required_method(self, scope: &mut Scope) -> bool
pub fn __expand_commit_method( self, scope: &mut Scope, ) -> <() as RudaType>::ExpandType
pub fn __expand_write_count_method(self, scope: &mut Scope) -> VectorSize
pub fn __expand_new<P: ReducePrecision>( scope: &mut Scope, input: <VirtualTensor<P::EI, P::SI> as RudaType>::ExpandType, output: <VirtualTensor<Out::T, Out::N, ReadWrite> as RudaType>::ExpandType, reduce_axis: <usize as RudaType>::ExpandType, out_vec_axis: <usize as RudaType>::ExpandType, write_index: <usize as RudaType>::ExpandType, vectorization_mode: VectorizationMode, acc_format: AccumulatorFormat, ) -> <Writer<Out> as RudaType>::ExpandType
pub fn __expand_write<P: ReducePrecision, I: ReduceInstruction<P>>( scope: &mut Scope, this: Self, local_index: <usize as RudaType>::ExpandType, accumulator: <Accumulator<P> as RudaType>::ExpandType, inst: <I as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_commit_required(scope: &mut Scope, this: Self) -> bool
pub fn __expand_commit( scope: &mut Scope, this: Self, ) -> <() as RudaType>::ExpandType
pub fn __expand_write_count(scope: &mut Scope, this: Self) -> VectorSize
Trait Implementations§
Source§impl<Out: NumericVector> Clone for WriterExpand<Out>
impl<Out: NumericVector> Clone for WriterExpand<Out>
Source§impl<Out: NumericVector> IntoMut for WriterExpand<Out>
impl<Out: NumericVector> IntoMut for WriterExpand<Out>
Source§fn into_mut(self, scope: &mut Scope) -> Self
fn into_mut(self, scope: &mut Scope) -> Self
Convert the variable into a potentially new mutable variable in
scope, copying if needed.fn expand_reference_value(self, scope: &mut Scope) -> Self
fn expand_inactive_value(self, _scope: &mut Scope) -> Self
fn expand_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_absent_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_reborrow(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_return_reference(self, scope: &mut Scope, writable: bool) -> Self
fn expand_deref(self, _scope: &mut Scope) -> Self
Source§impl<Out: NumericVector> RudaDebug for WriterExpand<Out>
impl<Out: NumericVector> RudaDebug for WriterExpand<Out>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<Out: NumericVector> RudaEnum for WriterExpand<Out>
impl<Out: NumericVector> RudaEnum for WriterExpand<Out>
type RuntimeValue = ()
fn snapshot_for_match(self, scope: &mut Scope) -> Self
fn discriminant(&self) -> NativeExpand<i32>
Source§fn runtime_value(self) -> Self::RuntimeValue
fn runtime_value(self) -> Self::RuntimeValue
Return the runtime value of this enum, if only one variant has a value.
Should return () for all other cases.
fn discriminant_of(variant_name: &'static str) -> i32
fn discriminant_of_value(&self, variant_name: &'static str) -> i32
Auto Trait Implementations§
impl<Out> !RefUnwindSafe for WriterExpand<Out>
impl<Out> !Send for WriterExpand<Out>
impl<Out> !Sync for WriterExpand<Out>
impl<Out> !UnwindSafe for WriterExpand<Out>
impl<Out> Freeze for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: Freeze,
<PerpendicularWriter<Out> as RudaType>::ExpandType: Freeze,
impl<Out> Unpin for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: Unpin,
<PerpendicularWriter<Out> as RudaType>::ExpandType: Unpin,
impl<Out> UnsafeUnpin for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: UnsafeUnpin,
<PerpendicularWriter<Out> as RudaType>::ExpandType: UnsafeUnpin,
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