adding moving to string
This commit is contained in:
parent
b01eda5e0e
commit
5d30ca51ed
1 changed files with 9 additions and 0 deletions
|
@ -100,6 +100,15 @@ impl From<&i64> for Value {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Value> for String {
|
||||
fn from(value: Value) -> Self {
|
||||
match value {
|
||||
Value::String(str) => str,
|
||||
_ => String::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub struct Symbol(pub String);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue