pub struct SphKernelParams {
pub h: f64,
pub d_inv: f64,
pub d3_inv: f64,
}Expand description
Pre-computed parameters for a smoothing kernel with smoothing length h.
Fields§
§h: f64Smoothing length.
d_inv: f641 / h.
d3_inv: f641 / h^3.
Implementations§
Trait Implementations§
Source§impl Clone for SphKernelParams
impl Clone for SphKernelParams
Source§fn clone(&self) -> SphKernelParams
fn clone(&self) -> SphKernelParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SphKernelParams
impl Debug for SphKernelParams
impl Copy for SphKernelParams
Auto Trait Implementations§
impl Freeze for SphKernelParams
impl RefUnwindSafe for SphKernelParams
impl Send for SphKernelParams
impl Sync for SphKernelParams
impl Unpin for SphKernelParams
impl UnsafeUnpin for SphKernelParams
impl UnwindSafe for SphKernelParams
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,
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