pub struct PropertyDef {
pub property: Property,
pub values: &'static [&'static str],
}Expand description
One property of a block with its possible values, in palette order.
Fields§
§property: PropertyWhich property.
values: &'static [&'static str]Values in palette order (booleans are ["true", "false"], integers "0", "1", …).
Trait Implementations§
Source§impl Clone for PropertyDef
impl Clone for PropertyDef
impl Copy for PropertyDef
Source§impl Debug for PropertyDef
impl Debug for PropertyDef
impl Eq for PropertyDef
Source§impl PartialEq for PropertyDef
impl PartialEq for PropertyDef
impl StructuralPartialEq for PropertyDef
Auto Trait Implementations§
impl Forget for PropertyDef
impl Freeze for PropertyDef
impl RefUnwindSafe for PropertyDef
impl Send for PropertyDef
impl Sync for PropertyDef
impl Unpin for PropertyDef
impl UnsafeUnpin for PropertyDef
impl UnwindSafe for PropertyDef
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