json_ld_syntax_next/context/definition/import.rs
1use std::hash::Hash;
2
3#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
4pub struct Import;
5
6impl Import {
7 pub fn into_str(self) -> &'static str {
8 "@import"
9 }
10}
11
12#[allow(clippy::derived_hash_with_manual_eq)]
13impl Hash for Import {
14 fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
15 self.into_str().hash(state)
16 }
17}