use crate::{InvalidVariable, Variable};
impl TryFrom<String> for Variable {
type Error = InvalidVariable;
fn try_from(value: String) -> Result<Self, Self::Error> {
Variable::try_create(value)
}
}
impl TryFrom<&str> for Variable {
type Error = InvalidVariable;
fn try_from(value: &str) -> Result<Self, Self::Error> {
Variable::try_create(value)
}
}