pub fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
        match &self.value {
            Value::Block => {
                write!(fmt, "let {}: {} = {{}}", self.name, self.typ)?;
            }
            Value::Primitive(v) => {
                write!(fmt, "let {}: {} = {}", self.name, self.typ, v)?;
            }
            Value::Struct { fields } => {
                write!(fmt, "let {}: {} = {}", self.name, self.typ, self.typ)?;
                fields.fmt(fmt)?;
            }
        }

        write!(fmt, ";\n")?;
        Ok(())
    }
/// Formats the struct using the given formatter.
Formats the struct using the given formatter.
Formats the struct using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
        match &self.value {
            Value::Block => {
                write!(fmt, "let {}: {} = {{}}", self.name, self.typ)?;
            }
            Value::Primitive(v) => {
                write!(fmt, "let {}: {} = {}", self.name, self.typ, v)?;
            }
            Value::Struct { fields } => {
                write!(fmt, "let {}: {} = {}", self.name, self.typ, self.typ)?;
                fields.fmt(fmt)?;
            }
        }
        write!(fmt, ";\n")?;
        Ok(())
    }
pub fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> fmt :: Result { match & self . value { Value :: Block => { write ! ( fmt " " self name self typ ) ? ; } Value :: Primitive ( v ) => { write ! ( fmt " " self name self typ v ) ? ; } Value :: Struct { fields } => { write ! ( fmt " " self name self typ self typ ) ? ; fields . fmt ( fmt ) ? ; } } write ! ( fmt " \n " ) ? ; Ok ( ( ) ) }
Formats the struct using the given formatter.
Formats the struct using the given formatter .
&self
fmt
&mut Formatter<'_>