cubecl_core/frontend/iter/traits/
accum.rs1use crate::prelude::*;
2
3pub trait IntoNumericExpand<S: Numeric> {
6 fn into_numeric_expand(self, scope: &Scope) -> NativeExpand<S>;
8}
9
10impl<S: Numeric> IntoNumericExpand<S> for NativeExpand<S> {
11 fn into_numeric_expand(self, _scope: &Scope) -> NativeExpand<S> {
12 self
13 }
14}
15
16impl<S: Numeric> IntoNumericExpand<S> for &NativeExpand<S> {
17 fn into_numeric_expand(self, scope: &Scope) -> NativeExpand<S> {
18 self.__expand_deref_method(scope)
19 }
20}