pub struct ExponentialParam {
pub bias: f32,
pub base: f32,
pub multiplier: f32,
pub depth_multiplier: f32,
}Expand description
A parameter that changes expoentially with the form f = c + mb^(k*d) where: c: constant bias b: base m: multiplier k: depth multiplier d: depth
Fields§
§bias: f32§base: f32§multiplier: f32§depth_multiplier: f32Trait Implementations§
Source§impl Clone for ExponentialParam
impl Clone for ExponentialParam
Source§fn clone(&self) -> ExponentialParam
fn clone(&self) -> ExponentialParam
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 ExponentialParam
impl Debug for ExponentialParam
Source§impl Default for ExponentialParam
impl Default for ExponentialParam
Source§impl Message for ExponentialParam
impl Message for ExponentialParam
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ExponentialParam
impl PartialEq for ExponentialParam
impl StructuralPartialEq for ExponentialParam
Auto Trait Implementations§
impl Freeze for ExponentialParam
impl RefUnwindSafe for ExponentialParam
impl Send for ExponentialParam
impl Sync for ExponentialParam
impl Unpin for ExponentialParam
impl UnwindSafe for ExponentialParam
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