pub enum BooleanOp {
Show 16 variants
False,
NotOr,
OnlySecond,
NotFirst,
OnlyFirst,
NotSecond,
NotSame,
NotAnd,
And,
Same,
Second,
Causes,
First,
CausedBy,
Or,
True,
}Expand description
Vanilla shape boolean operation.
Mirrors net.minecraft.world.phys.shapes.BooleanOp. Operations where
apply(false, false) is true are not valid for join_is_not_empty, matching
vanilla’s guard for unbounded outside-space results.
Variants§
False
NotOr
OnlySecond
NotFirst
OnlyFirst
NotSecond
NotSame
NotAnd
And
Same
Second
Causes
First
CausedBy
Or
True
Implementations§
Trait Implementations§
impl Copy for BooleanOp
impl Eq for BooleanOp
impl StructuralPartialEq for BooleanOp
Auto Trait Implementations§
impl Freeze for BooleanOp
impl RefUnwindSafe for BooleanOp
impl Send for BooleanOp
impl Sync for BooleanOp
impl Unpin for BooleanOp
impl UnsafeUnpin for BooleanOp
impl UnwindSafe for BooleanOp
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
Compare self to
key and return true if they are equal.