mezzaluna_loaded_features/feature/
memory.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::{Path, PathBuf};

#[derive(Debug, Hash, PartialEq, Eq)]
pub struct Feature {
    path: PathBuf,
}

impl Feature {
    pub fn with_path(path: PathBuf) -> Self {
        Self { path }
    }

    pub fn path(&self) -> &Path {
        &self.path
    }
}