pub enum DensityType {
Tanh(Tanh),
Exp(Exp),
Cube(Cube),
}Expand description
Enumeration of built-in density types.
This allows specifying a density without type parameters.
Variants§
Implementations§
Source§impl DensityType
impl DensityType
Sourcepub fn tanh_with_alpha(alpha: f64) -> Self
pub fn tanh_with_alpha(alpha: f64) -> Self
Create a Tanh density with custom alpha.
Sourcepub fn exp_with_alpha(alpha: f64) -> Self
pub fn exp_with_alpha(alpha: f64) -> Self
Create an Exp density with custom alpha.
Trait Implementations§
Source§impl Clone for DensityType
impl Clone for DensityType
Source§fn clone(&self) -> DensityType
fn clone(&self) -> DensityType
Returns a duplicate of the value. Read more
1.0.0 · 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 DensityType
impl Debug for DensityType
Auto Trait Implementations§
impl Freeze for DensityType
impl RefUnwindSafe for DensityType
impl Send for DensityType
impl Sync for DensityType
impl Unpin for DensityType
impl UnwindSafe for DensityType
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