Struct StructureTemplateSnapshot
#[non_exhaustive]pub struct StructureTemplateSnapshot {
pub size: [i32; 3],
pub blocks: Vec<StructureTemplateBlock>,
}Expand description
The transformed template size and blocks in vanilla placement order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: [i32; 3]Size after rotation.
blocks: Vec<StructureTemplateBlock>Blocks in vanilla placement order.
Implementations§
§impl StructureTemplateSnapshot
impl StructureTemplateSnapshot
pub fn new(
size: [i32; 3],
blocks: Vec<StructureTemplateBlock>,
) -> StructureTemplateSnapshot
pub fn new( size: [i32; 3], blocks: Vec<StructureTemplateBlock>, ) -> StructureTemplateSnapshot
Build a snapshot from its size and blocks.
Trait Implementations§
§impl Clone for StructureTemplateSnapshot
impl Clone for StructureTemplateSnapshot
§fn clone(&self) -> StructureTemplateSnapshot
fn clone(&self) -> StructureTemplateSnapshot
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 StructureTemplateSnapshot
impl Debug for StructureTemplateSnapshot
§impl Default for StructureTemplateSnapshot
impl Default for StructureTemplateSnapshot
§fn default() -> StructureTemplateSnapshot
fn default() -> StructureTemplateSnapshot
Returns the “default value” for a type. Read more
§impl PartialEq for StructureTemplateSnapshot
impl PartialEq for StructureTemplateSnapshot
impl StructuralPartialEq for StructureTemplateSnapshot
Auto Trait Implementations§
impl Freeze for StructureTemplateSnapshot
impl RefUnwindSafe for StructureTemplateSnapshot
impl Send for StructureTemplateSnapshot
impl Sync for StructureTemplateSnapshot
impl Unpin for StructureTemplateSnapshot
impl UnsafeUnpin for StructureTemplateSnapshot
impl UnwindSafe for StructureTemplateSnapshot
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