INNER CODE UNIT · Rust
var
lurk-lab/lurk-beta · foil/src/lib.rs:145
pub fn var<S: Into<String>>(name: S) -> Self {
Var(name.into(), None).into()
}
}
impl Display for Label {
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), std::fmt::Error> {
match self {
Self::F(f) => std::fmt::Display::fmt(&f, fmt),
Self::V(_, _) => std::fmt::Display::fmt(&Var::from(self), fmt),
}
}
}
impl LabelTrait for Label {}
impl From<Var> for Label {
fn from(v: Var) -> Self {