vortex_scalar/
null.rs

1use vortex_error::VortexError;
2
3use crate::Scalar;
4
5impl TryFrom<&Scalar> for () {
6    type Error = VortexError;
7
8    fn try_from(scalar: &Scalar) -> Result<Self, Self::Error> {
9        scalar.value().as_null()
10    }
11}
12
13impl TryFrom<Scalar> for () {
14    type Error = VortexError;
15
16    fn try_from(scalar: Scalar) -> Result<Self, Self::Error> {
17        <()>::try_from(&scalar)
18    }
19}