Add undefined value
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
9b87e7089f
commit
662e574588
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ pub enum NomoValue {
|
||||||
Iterator {
|
Iterator {
|
||||||
value: Box<dyn CloneIterator<Item = NomoValue>>,
|
value: Box<dyn CloneIterator<Item = NomoValue>>,
|
||||||
},
|
},
|
||||||
|
Undefined,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl NomoValue {
|
impl NomoValue {
|
||||||
|
|
@ -241,6 +242,7 @@ impl NomoValue {
|
||||||
NomoValue::SignedInteger { value } => Some(value.to_string()),
|
NomoValue::SignedInteger { value } => Some(value.to_string()),
|
||||||
NomoValue::Float { value } => Some(value.to_string()),
|
NomoValue::Float { value } => Some(value.to_string()),
|
||||||
NomoValue::Iterator { .. } => None,
|
NomoValue::Iterator { .. } => None,
|
||||||
|
NomoValue::Undefined => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -281,6 +283,7 @@ impl std::fmt::Debug for NomoValue {
|
||||||
.debug_struct("Iterator")
|
.debug_struct("Iterator")
|
||||||
.field("value", &"Iterator")
|
.field("value", &"Iterator")
|
||||||
.finish(),
|
.finish(),
|
||||||
|
Self::Undefined => f.debug_tuple("Undefined").finish(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue