- Document Location, Expression, QueryResult (#109)

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2024-01-15 17:21:49 -08:00
committed by GitHub
parent 9e1e22432d
commit d39200a52c
5 changed files with 196 additions and 45 deletions
+18
View File
@@ -238,6 +238,24 @@ impl Value {
}
}
impl From<bool> for Value {
fn from(b: bool) -> Self {
Value::Bool(b)
}
}
impl From<String> for Value {
fn from(s: String) -> Self {
Value::String(s.into())
}
}
impl From<&str> for Value {
fn from(s: &str) -> Self {
Value::String(s.into())
}
}
impl From<u128> for Value {
fn from(n: u128) -> Self {
Value::Number(Number::from(n))