Add stubs for casting the new OwnedBooleans.

This commit is contained in:
Tom Alexander 2020-06-14 17:23:54 -04:00
parent 83c86ff9b3
commit eb3b1ae30a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -226,16 +226,19 @@ impl Castable for OwnedLiteral {
.map(|num| IceResult::from_owned(OwnedLiteral::LFloat(num)))
})
.ok(),
(OwnedLiteral::LBoolean(_), "number") => todo!(),
(OwnedLiteral::LPositiveInteger(_), "number") => Some(IceResult::from_borrowed(self)),
(OwnedLiteral::LNegativeInteger(_), "number") => Some(IceResult::from_borrowed(self)),
(OwnedLiteral::LFloat(_), "number") => Some(IceResult::from_borrowed(self)),
(OwnedLiteral::LString(text), "string") => todo!(),
(OwnedLiteral::LBoolean(_), "string") => todo!(),
(OwnedLiteral::LPositiveInteger(_), "string") => todo!(),
(OwnedLiteral::LNegativeInteger(_), "string") => todo!(),
(OwnedLiteral::LFloat(_), "string") => todo!(),
(OwnedLiteral::LString(text), "boolean") => todo!(),
(OwnedLiteral::LBoolean(_), "boolean") => todo!(),
(OwnedLiteral::LPositiveInteger(_), "boolean") => todo!(),
(OwnedLiteral::LNegativeInteger(_), "boolean") => todo!(),
(OwnedLiteral::LFloat(_), "boolean") => todo!(),