Struct BlockPlacement
#[non_exhaustive]pub struct BlockPlacement {
pub pos: BlockPos,
pub state: BlockState,
}Expand description
One block a placement writes (entity_place’s Placement::Multi).
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.pos: BlockPosWhere the block goes.
state: BlockStateThe state it is placed in.
Trait Implementations§
§impl Clone for BlockPlacement
impl Clone for BlockPlacement
§fn clone(&self) -> BlockPlacement
fn clone(&self) -> BlockPlacement
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 moreimpl Copy for BlockPlacement
§impl Debug for BlockPlacement
impl Debug for BlockPlacement
impl Eq for BlockPlacement
§impl PartialEq for BlockPlacement
impl PartialEq for BlockPlacement
impl StructuralPartialEq for BlockPlacement
Auto Trait Implementations§
impl Freeze for BlockPlacement
impl RefUnwindSafe for BlockPlacement
impl Send for BlockPlacement
impl Sync for BlockPlacement
impl Unpin for BlockPlacement
impl UnsafeUnpin for BlockPlacement
impl UnwindSafe for BlockPlacement
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