schemat 0.5.1

A code formatter for Scheme, Lisp, and any S-expressions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::position::Position;

#[derive(Debug, Eq, PartialEq)]
pub struct HashDirective<'a> {
    value: &'a str,
    position: Position,
}

impl<'a> HashDirective<'a> {
    pub const fn new(value: &'a str, position: Position) -> Self {
        Self { value, position }
    }

    pub const fn value(&self) -> &'a str {
        self.value
    }
}