NonDeDuplicated

Type Alias NonDeDuplicated 

Source
pub type NonDeDuplicated<T: Any + Send + Sync> = NonDeDuplicatedFlexible<T, T>;
Expand description

For non-de-duplicated objects stored in static variables. NOT for string slices - for those use NonDeDuplicatedStr and NonDeDuplicatedCStr.

Aliased Type§

pub struct NonDeDuplicated<T: Any + Send + Sync> { /* private fields */ }

Implementations§

Source§

impl<T: Any + Send + Sync> NonDeDuplicated<T>

Source

pub const fn new(value: T) -> Self

Construct a new instance.

Source

pub const fn get(&self) -> &T

Get a reference.