pub struct JigsawBlock {
pub pos: [i32; 3],
pub orientation: JigsawOrientation,
pub name: Identifier,
pub target: Identifier,
pub pool: Identifier,
pub joint: JointType,
pub final_state: Identifier,
pub selection_priority: i32,
pub placement_priority: i32,
}Expand description
A jigsaw connector block extracted from a structure template.
Fields§
§pos: [i32; 3]Position relative to template origin.
orientation: JigsawOrientationOrientation (determines facing direction).
name: IdentifierName of this jigsaw connector.
target: IdentifierTarget connector name to attach to.
pool: IdentifierPool to draw target pieces from.
joint: JointTypeJoint type.
final_state: IdentifierBlock state to replace jigsaw with after placement.
selection_priority: i32Priority for selecting this jigsaw among siblings in a piece (higher = tried first).
placement_priority: i32Priority for BFS queue ordering when placing children (higher = processed first).
Trait Implementations§
Source§impl Clone for JigsawBlock
impl Clone for JigsawBlock
Source§fn clone(&self) -> JigsawBlock
fn clone(&self) -> JigsawBlock
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 moreAuto Trait Implementations§
impl Freeze for JigsawBlock
impl RefUnwindSafe for JigsawBlock
impl Send for JigsawBlock
impl Sync for JigsawBlock
impl Unpin for JigsawBlock
impl UnsafeUnpin for JigsawBlock
impl UnwindSafe for JigsawBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>