about summary refs log blame commit diff
path: root/tvix/eval/src/value/string.rs
blob: 7e6f5ecf3bd346c6ed87dcdc73e8e65b70e99d0c (plain) (tree)
1
2
3
4
5
6




                                                                   
                                        






                                                                        
use std::fmt::Display;

/// This module implements Nix language strings and their different
/// backing implementations.

#[derive(Clone, Debug, Hash, PartialEq)]
pub struct NixString(String);

impl Display for NixString {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.write_str(self.0.as_str())
    }
}