pub struct ArrayEnumProperty<T: PropertySerializable + Eq, const N: usize>(pub &'static str, pub [T; N]);
Expand description
An enum block property, the difference with EnumProperty
is that it uses a const generic to
store values directly inside the structure.
Tuple Fields§
§0: &'static str
§1: [T; N]
Trait Implementations§
Source§impl<T, const N: usize> Property<T> for ArrayEnumProperty<T, N>
impl<T, const N: usize> Property<T> for ArrayEnumProperty<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArrayEnumProperty<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArrayEnumProperty<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayEnumProperty<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayEnumProperty<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayEnumProperty<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for ArrayEnumProperty<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more