pub enum SupportType {
Full,
Center,
Rigid,
}Expand description
Support type for is_face_sturdy checks.
Determines what kind of support a block face provides for other blocks. Used by fences, walls, torches, etc. to decide if they can connect/attach.
Variants§
Full
Full face support - the entire face must be solid. Used by most blocks that need a solid surface.
Center
Center support - only the center of the face needs to be solid. Used by things like hanging signs that only need a small attachment point.
Rigid
Rigid support - most of the face must be solid, but allows small gaps. Used by bells and similar blocks.
Trait Implementations§
Source§impl Clone for SupportType
impl Clone for SupportType
Source§fn clone(&self) -> SupportType
fn clone(&self) -> SupportType
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 SupportType
Source§impl Debug for SupportType
impl Debug for SupportType
impl Eq for SupportType
Source§impl PartialEq for SupportType
impl PartialEq for SupportType
impl StructuralPartialEq for SupportType
Auto Trait Implementations§
impl Freeze for SupportType
impl RefUnwindSafe for SupportType
impl Send for SupportType
impl Sync for SupportType
impl Unpin for SupportType
impl UnsafeUnpin for SupportType
impl UnwindSafe for SupportType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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<>>