Struct FactorLoading
pub struct FactorLoading { /* private fields */ }Expand description
A factor loading value.
Implementations§
§impl FactorLoading
impl FactorLoading
pub fn new(factor: FactorName, value: f64) -> Result<FactorLoading, FactorError>
pub fn new(factor: FactorName, value: f64) -> Result<FactorLoading, FactorError>
Creates a factor loading from a factor and finite value.
§Errors
Returns [FactorError::NonFiniteValue] when value is not finite.
pub const fn factor(&self) -> &FactorName
pub const fn factor(&self) -> &FactorName
Returns the factor name.
Trait Implementations§
§impl Clone for FactorLoading
impl Clone for FactorLoading
§fn clone(&self) -> FactorLoading
fn clone(&self) -> FactorLoading
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 more§impl Debug for FactorLoading
impl Debug for FactorLoading
§impl PartialEq for FactorLoading
impl PartialEq for FactorLoading
impl StructuralPartialEq for FactorLoading
Auto Trait Implementations§
impl Freeze for FactorLoading
impl RefUnwindSafe for FactorLoading
impl Send for FactorLoading
impl Sync for FactorLoading
impl Unpin for FactorLoading
impl UnsafeUnpin for FactorLoading
impl UnwindSafe for FactorLoading
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