empty? rewrite. (#2641)

This commit is contained in:
Andrés N. Robalino
2020-10-06 05:21:20 -05:00
committed by GitHub
parent df07be6a42
commit 5d945ef869
12 changed files with 498 additions and 338 deletions

View File

@ -448,6 +448,18 @@ impl From<&str> for Value {
}
}
impl From<bool> for Value {
fn from(s: bool) -> Value {
Value {
value: s.into(),
tag: Tag {
anchor: None,
span: Span::unknown(),
},
}
}
}
impl<T> From<T> for UntaggedValue
where
T: Into<Primitive>,