pub struct Rule {
pub cell: Face,
pub base: Base,
pub added: Vec<String>,
pub removed: Vec<String>,
}Expand description
One neighbour that keeps a block: the neighbour across cell is in base,
or is one of added, and is not one of removed.
Fields§
§cell: FaceThe direction from the block to the neighbour this rule reads.
base: BaseThe base set.
added: Vec<String>States the jar keeps the block beside beyond the base, as table rows
(minecraft:block or minecraft:block[k=v,…]).
removed: Vec<String>States of the base the jar does not keep it beside.
Implementations§
Trait Implementations§
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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