rust-parser-combinator/src/parser/representation.rs

13 lines
210 B
Rust

#[derive(Debug, Clone, PartialEq)]
pub struct Representation {
val: String,
}
impl Representation {
pub fn new(from: &str) -> Self {
Self {
val: from.to_string(),
}
}
}