Enum BlockShapeKind
#[non_exhaustive]pub enum BlockShapeKind {
Outline,
Collision,
}Expand description
The empty-context block shape requested from a level.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Outline
Selection outline (BlockState.getShape).
Collision
Collision shape (BlockState.getCollisionShape).
Trait Implementations§
§impl Clone for BlockShapeKind
impl Clone for BlockShapeKind
§fn clone(&self) -> BlockShapeKind
fn clone(&self) -> BlockShapeKind
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 BlockShapeKind
§impl Debug for BlockShapeKind
impl Debug for BlockShapeKind
impl Eq for BlockShapeKind
§impl PartialEq for BlockShapeKind
impl PartialEq for BlockShapeKind
impl StructuralPartialEq for BlockShapeKind
Auto Trait Implementations§
impl Freeze for BlockShapeKind
impl RefUnwindSafe for BlockShapeKind
impl Send for BlockShapeKind
impl Sync for BlockShapeKind
impl Unpin for BlockShapeKind
impl UnsafeUnpin for BlockShapeKind
impl UnwindSafe for BlockShapeKind
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