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