Skip to main content

luaur_analysis/records/
boolean_singleton.rs

1#[allow(non_camel_case_types)]
2#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
3pub struct BooleanSingleton {
4    pub value: bool,
5}
6#[allow(non_snake_case)]
7impl BooleanSingleton {
8    pub const fn new(value: bool) -> Self {
9        Self { value }
10    }
11}
12unsafe impl Send for BooleanSingleton {}
13unsafe impl Sync for BooleanSingleton {}