Enum ConnectionKind
#[non_exhaustive]pub enum ConnectionKind {
Fence,
Wall,
Bars,
}Expand description
Which vanilla rule a connection query comes from: the block asking is a fence, a wall, or iron bars or a pane, and vanilla’s own answer is that rule’s.
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.
Fence
FenceBlock.connectsTo: an arm of a fence.
Wall
WallBlock.connectsTo: a side of a wall, low or tall from the block above.
Bars
IronBarsBlock.attachsTo: an arm of iron bars or a glass pane, which are
the same block class.
Trait Implementations§
§impl Clone for ConnectionKind
impl Clone for ConnectionKind
§fn clone(&self) -> ConnectionKind
fn clone(&self) -> ConnectionKind
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 ConnectionKind
§impl Debug for ConnectionKind
impl Debug for ConnectionKind
impl Eq for ConnectionKind
§impl Hash for ConnectionKind
impl Hash for ConnectionKind
§impl PartialEq for ConnectionKind
impl PartialEq for ConnectionKind
impl StructuralPartialEq for ConnectionKind
§impl Wire for ConnectionKind
impl Wire for ConnectionKind
Auto Trait Implementations§
impl Freeze for ConnectionKind
impl RefUnwindSafe for ConnectionKind
impl Send for ConnectionKind
impl Sync for ConnectionKind
impl Unpin for ConnectionKind
impl UnsafeUnpin for ConnectionKind
impl UnwindSafe for ConnectionKind
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