pub struct Earthquake {
pub lon: f64,
pub lat: f64,
pub depth: f64,
pub magnitude: f64,
pub magnitude_kind: Magnitude,
}Expand description
Represents an earthquake event with its source parameters.
Fields§
§lon: f64Longitude in decimal degrees.
lat: f64Latitude in decimal degrees.
depth: f64Earthquake focal depth in kilometers.
magnitude: f64Magnitude value.
magnitude_kind: MagnitudeType of magnitude scale (Mw, Ml, etc.)
Implementations§
Source§impl Earthquake
impl Earthquake
Sourcepub fn new(
lon: f64,
lat: f64,
depth: f64,
magnitude: f64,
magnitude_kind: Magnitude,
) -> Self
pub fn new( lon: f64, lat: f64, depth: f64, magnitude: f64, magnitude_kind: Magnitude, ) -> Self
Create a new Earthquake instance.
§Arguments
lon- Longitude in decimal degrees.lat- Latitude in decimal degrees.depth- Focal depth in kilometers.magnitude- Magnitude value.magnitude_kind- Type of magnitude scale.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Earthquake
impl RefUnwindSafe for Earthquake
impl Send for Earthquake
impl Sync for Earthquake
impl Unpin for Earthquake
impl UnwindSafe for Earthquake
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> 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