Skip to main content

luaur_analysis/records/
string_singleton.rs

1use alloc::string::String;
2
3#[allow(non_camel_case_types)]
4#[derive(Debug, Clone, Default, PartialEq, Eq, Hash)]
5pub struct StringSingleton {
6    pub value: String,
7}
8
9#[allow(non_snake_case)]
10impl StringSingleton {
11    pub const fn new(value: String) -> Self {
12        Self { value }
13    }
14}
15
16unsafe impl Send for StringSingleton {}
17unsafe impl Sync for StringSingleton {}