pub enum ShapePattern {
Any,
Solid,
Powder,
Granules,
Liquid,
Solution {
concentration_range_pct: Option<RangeInclusive<f64>>,
},
Gas,
Foil,
Ingot,
}Expand description
Physical shape pattern used as a condition in an HsRule.
Variants§
Any
Matches any physical form.
Solid
Solid (bulk, pellets, flakes, rods, etc.).
Powder
Powder (fine-grained).
Granules
Granules (coarser than powder).
Liquid
Pure liquid (not a solution).
Solution
Solution, optionally constrained to a concentration range (w/w%).
Fields
§
concentration_range_pct: Option<RangeInclusive<f64>>None = no concentration constraint.
Gas
Gas or vapour.
Foil
Metal foil.
Ingot
Cast metal (ingot, billet, slab, etc.).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapePattern
impl RefUnwindSafe for ShapePattern
impl Send for ShapePattern
impl Sync for ShapePattern
impl Unpin for ShapePattern
impl UnsafeUnpin for ShapePattern
impl UnwindSafe for ShapePattern
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