pub struct McStructureBlock {
pub x: i32,
pub y: i32,
pub z: i32,
pub primary: i32,
pub secondary: i32,
}Expand description
A single block sampled from a structure.
Fields§
§x: i32X coordinate relative to the structure origin.
y: i32Y coordinate relative to the structure origin.
z: i32Z coordinate relative to the structure origin.
primary: i32Primary-layer palette index, or -1.
secondary: i32Secondary-layer palette index, or -1.
Trait Implementations§
Source§impl Clone for McStructureBlock
impl Clone for McStructureBlock
Source§fn clone(&self) -> McStructureBlock
fn clone(&self) -> McStructureBlock
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 moreSource§impl Debug for McStructureBlock
impl Debug for McStructureBlock
Source§impl PartialEq for McStructureBlock
impl PartialEq for McStructureBlock
impl StructuralPartialEq for McStructureBlock
Auto Trait Implementations§
impl Freeze for McStructureBlock
impl RefUnwindSafe for McStructureBlock
impl Send for McStructureBlock
impl Sync for McStructureBlock
impl Unpin for McStructureBlock
impl UnsafeUnpin for McStructureBlock
impl UnwindSafe for McStructureBlock
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,
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 more