Skip to main content

bel/common/types/
null.rs

1use std::any::Any;
2
3use crate::common::{types::Type, value::Val};
4
5pub struct Null;
6
7impl Val for Null {
8    fn get_type(&self) -> Type<'_> {
9        super::NULL_TYPE
10    }
11
12    fn into_inner(self) -> Box<dyn Any> {
13        Box::new(None::<()>)
14    }
15}