pub enum BlockSpec {
Single,
Complex(&'static [&'static dyn UntypedProperty]),
}Expand description
Made for static definitions of all properties of a block.
Variants§
Single
For blocks with no properties, they have a single state.
Complex(&'static [&'static dyn UntypedProperty])
For blocks with some properties, requires a slice to a static array of properties
references. Use the blocks_specs! macro to generate such arrays.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockSpec
impl !RefUnwindSafe for BlockSpec
impl Send for BlockSpec
impl Sync for BlockSpec
impl Unpin for BlockSpec
impl !UnwindSafe for BlockSpec
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