pub_just/
assignment.rs

1use super::*;
2
3/// An assignment, e.g `foo := bar`
4pub type Assignment<'src> = Binding<'src, Expression<'src>>;
5
6impl<'src> Display for Assignment<'src> {
7  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
8    if self.export {
9      write!(f, "export ")?;
10    }
11    write!(f, "{} := {}", self.name, self.value)
12  }
13}