use super::*;
impl<E: Environment> Equal for StringType<E> {
type Output = Boolean<E>;
fn is_equal(&self, other: &Self) -> Self::Output {
Boolean::new(self == other)
}
fn is_not_equal(&self, other: &Self) -> Self::Output {
Boolean::new(self != other)
}
}
impl<E: Environment> Ternary for StringType<E> {
type Boolean = Boolean<E>;
type Output = Self;
fn ternary(condition: &Self::Boolean, first: &Self, second: &Self) -> Self::Output {
match **condition {
true => first.clone(),
false => second.clone(),
}
}
}