pub struct EnumProperty<T: PropertyEnum + 'static> {
pub name: &'static str,
pub possible_values: &'static [T],
}Fields§
§name: &'static str§possible_values: &'static [T]Implementations§
Source§impl<T: PropertyEnum> EnumProperty<T>
impl<T: PropertyEnum> EnumProperty<T>
Source§impl<T: PartialEq + PropertyEnum + 'static> EnumProperty<T>
impl<T: PartialEq + PropertyEnum + 'static> EnumProperty<T>
pub const fn get_internal_index_const(&self, value: &T) -> usize
Trait Implementations§
Source§impl<T: Clone + PropertyEnum + 'static> Clone for EnumProperty<T>
impl<T: Clone + PropertyEnum + 'static> Clone for EnumProperty<T>
Source§fn clone(&self) -> EnumProperty<T>
fn clone(&self) -> EnumProperty<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + PropertyEnum + 'static> Debug for EnumProperty<T>
impl<T: Debug + PropertyEnum + 'static> Debug for EnumProperty<T>
Source§impl<T: PropertyEnum + 'static> DynProperty for EnumProperty<T>
impl<T: PropertyEnum + 'static> DynProperty for EnumProperty<T>
Source§impl<T: PropertyEnum> Property<T> for EnumProperty<T>
impl<T: PropertyEnum> 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>
impl<T> Sync for EnumProperty<T>
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