interstice_abi/interstice_value/convert/
option.rs1use crate::IntersticeValue;
2
3impl<T> Into<IntersticeValue> for Option<T>
4where
5 T: Into<IntersticeValue>,
6{
7 fn into(self) -> IntersticeValue {
8 match self {
9 Some(v) => IntersticeValue::Option(Some(Box::new(v.into()))),
10 None => IntersticeValue::Option(None),
11 }
12 }
13}