pub struct EnumProperty<T: PropertySerializable + Eq>(pub &'static str, pub &'static [T]);Expand description
An enum block property, this property use an external statically defined array of values.
Tuple Fields§
§0: &'static str§1: &'static [T]Trait Implementations§
Source§impl<T> Property<T> for EnumProperty<T>
impl<T> Property<T> for EnumProperty<T>
Auto Trait Implementations§
impl<T> Freeze for EnumProperty<T>
impl<T> RefUnwindSafe for EnumProperty<T>where
T: RefUnwindSafe,
impl<T> Send for EnumProperty<T>where
T: Sync,
impl<T> Sync for EnumProperty<T>where
T: Sync,
impl<T> Unpin for EnumProperty<T>
impl<T> UnsafeUnpin for EnumProperty<T>
impl<T> UnwindSafe for EnumProperty<T>where
T: RefUnwindSafe,
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