pub struct GeometryEvidence {
pub fluid_cells: usize,
pub solid_cells: usize,
pub fluid_components: usize,
pub solid_volume_m3: f64,
pub mask_sha256: String,
pub box_cells: BTreeMap<String, usize>,
pub shapes: BTreeMap<String, ShapeEvidence>,
}Expand description
Summary of the represented mask, written as geometry.json. The mask
itself is not archived; it is rebuilt from the case boxes and checked
against mask_sha256.
Fields§
§fluid_cells: usizeNumber of fluid cells.
solid_cells: usizeNumber of solid cells.
fluid_components: usizeNumber of face-connected fluid regions.
solid_volume_m3: f64Represented solid volume in m3: solid cells times the cell volume.
mask_sha256: StringSHA-256 of the mask as one byte per cell (1 fluid, 0 solid), in cell order.
box_cells: BTreeMap<String, usize>Cells whose center lies inside each box, by box ID; overlapping boxes share cells.
shapes: BTreeMap<String, ShapeEvidence>Shape-local discretization evidence; overlaps are counted per shape.
Trait Implementations§
Source§impl Clone for GeometryEvidence
impl Clone for GeometryEvidence
Source§impl Debug for GeometryEvidence
impl Debug for GeometryEvidence
Source§impl<'de> Deserialize<'de> for GeometryEvidence
impl<'de> Deserialize<'de> for GeometryEvidence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for GeometryEvidence
impl Freeze for GeometryEvidence
impl Move for GeometryEvidence
impl RefUnwindSafe for GeometryEvidence
impl Send for GeometryEvidence
impl Sync for GeometryEvidence
impl Unpin for GeometryEvidence
impl UnsafeUnpin for GeometryEvidence
impl UnwindSafe for GeometryEvidence
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more