forked from M-Labs/nac3
1
0
Fork 0

core/ndstrides: pub ScalarOrNDArray::to_basic_value_enum

This commit is contained in:
lyken 2024-07-30 17:48:56 +08:00
parent 6369db94ab
commit 86b0d31290
1 changed files with 1 additions and 1 deletions

View File

@ -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(),