forked from M-Labs/nac3
core/ndstrides: pub ScalarOrNDArray::to_basic_value_enum
This commit is contained in:
parent
6369db94ab
commit
86b0d31290
|
@ -29,7 +29,7 @@ pub enum ScalarOrNDArray<'ctx> {
|
|||
|
||||
impl<'ctx> ScalarOrNDArray<'ctx> {
|
||||
/// Get the underlying [`BasicValueEnum<'ctx>`] of this [`ScalarOrNDArray`].
|
||||
fn to_basic_value_enum(self) -> BasicValueEnum<'ctx> {
|
||||
pub fn to_basic_value_enum(self) -> BasicValueEnum<'ctx> {
|
||||
match self {
|
||||
ScalarOrNDArray::Scalar(scalar) => scalar.value,
|
||||
ScalarOrNDArray::NDArray(ndarray) => ndarray.instance.value.as_basic_value_enum(),
|
||||
|
|
Loading…
Reference in New Issue