Add undefined value

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-15 12:35:45 +01:00
parent 9b87e7089f
commit 662e574588

View file

@ -31,6 +31,7 @@ pub enum NomoValue {
Iterator {
value: Box<dyn CloneIterator<Item = NomoValue>>,
},
Undefined,
}
impl NomoValue {
@ -241,6 +242,7 @@ impl NomoValue {
NomoValue::SignedInteger { value } => Some(value.to_string()),
NomoValue::Float { value } => Some(value.to_string()),
NomoValue::Iterator { .. } => None,
NomoValue::Undefined => None,
}
}
}
@ -281,6 +283,7 @@ impl std::fmt::Debug for NomoValue {
.debug_struct("Iterator")
.field("value", &"Iterator")
.finish(),
Self::Undefined => f.debug_tuple("Undefined").finish(),
}
}
}