Struct BlockShapes
pub struct BlockShapes {
pub properties: Vec<String>,
pub values: BTreeMap<String, Vec<[f64; 6]>>,
pub default: Option<Vec<[f64; 6]>>,
}Expand description
BlockShapes in a load-time content declaration.
Fields§
§properties: Vec<String>State property names selecting a shape, in tuple order.
values: BTreeMap<String, Vec<[f64; 6]>>Comma-separated property-value tuples mapped to boxes in block pixels.
default: Option<Vec<[f64; 6]>>Boxes used when no tuple matches.
Trait Implementations§
§impl Clone for BlockShapes
impl Clone for BlockShapes
§fn clone(&self) -> BlockShapes
fn clone(&self) -> BlockShapes
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 more§impl Debug for BlockShapes
impl Debug for BlockShapes
§impl PartialEq for BlockShapes
impl PartialEq for BlockShapes
impl StructuralPartialEq for BlockShapes
Auto Trait Implementations§
impl Freeze for BlockShapes
impl RefUnwindSafe for BlockShapes
impl Send for BlockShapes
impl Sync for BlockShapes
impl Unpin for BlockShapes
impl UnsafeUnpin for BlockShapes
impl UnwindSafe for BlockShapes
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