pub struct SoilLayer {
pub unit_reference: String,
pub top_level: f64,
pub base_level: Option<f64>,
pub base_unit_reference: Option<String>,
pub typical_description: String,
pub geol_code: String,
pub reference: String,
}
Fields§
§unit_reference: String
§top_level: f64
§base_level: Option<f64>
§base_unit_reference: Option<String>
§typical_description: String
§geol_code: String
§reference: String
Implementations§
Source§impl SoilLayer
impl SoilLayer
pub fn new(top_level: f64, base_level: f64, reference: String) -> Self
pub fn with_unit_reference( top_level: f64, base_level: f64, reference: String, unit_reference: String, ) -> Self
pub fn with_all_fields( unit_reference: String, top_level: f64, base_level: Option<f64>, base_unit_reference: Option<String>, typical_description: String, geol_code: String, ) -> Self
pub fn excavate_layer(&self, level: f64) -> (SoilLayer, bool)
pub fn process_layer(&self, sig3: f64, soil_type: SoilType) -> SoilLayer
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SoilLayer
impl<'de> Deserialize<'de> for SoilLayer
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 Freeze for SoilLayer
impl RefUnwindSafe for SoilLayer
impl Send for SoilLayer
impl Sync for SoilLayer
impl Unpin for SoilLayer
impl UnwindSafe for SoilLayer
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