blob: d5f7c8b2ba44ab4640fe42fc280641258ee1a204 (
plain) (
tree)
|
|
/// This module implements Nix lists.
use std::fmt::Display;
use super::Value;
#[derive(Clone, Debug, PartialEq)]
pub struct NixList(pub Vec<Value>);
impl Display for NixList {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("[ ")?;
for v in &self.0 {
v.fmt(f)?;
f.write_str(" ")?;
}
f.write_str("]")
}
}
|