pub struct Ownership {
pub lo: [i64; 3],
pub hi: [i64; 3],
pub owned: Vec<Aabb>,
pub owned_cells: usize,
pub voids: Vec<Void>,
pub fixed: Vec<([i64; 3], String)>,
pub clipped: Vec<(Aabb, NodeId)>,
}Expand description
A place’s owned cells and the voids inside their bounding box, derived from
the whole plan. The one computation behind Frame::of.
Fields§
§lo: [i64; 3]Inclusive low corner of the owned cells’ bounding box.
hi: [i64; 3]Inclusive high corner.
owned: Vec<Aabb>The owned cells, merged.
owned_cells: usizeHow many cells the place owns.
voids: Vec<Void>Every cell of the bounding box the place does not own, merged per owner, in owner order then cell order.
fixed: Vec<([i64; 3], String)>The fixed ground cells inside the bounding box, each with the block the whole writes there, in cell order.
clipped: Vec<(Aabb, NodeId)>Eaves cells the plan clipped at a neighbour’s shell, merged, with the neighbour.
Trait Implementations§
impl Eq for Ownership
impl StructuralPartialEq for Ownership
Auto Trait Implementations§
impl Freeze for Ownership
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnsafeUnpin for Ownership
impl UnwindSafe for Ownership
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