pub struct Concentration(/* private fields */);Expand description
Concentration field $c(\mathbf{r})$.
Represents the local concentration (mole fraction) of a species.
- Values: Must be non-negative.
Implementations§
Source§impl Concentration
impl Concentration
pub fn new(tensor: CausalTensor<f64>) -> Result<Self, PhysicsError>
Sourcepub fn new_unchecked(tensor: CausalTensor<f64>) -> Self
pub fn new_unchecked(tensor: CausalTensor<f64>) -> Self
Creates a new Concentration without validation. Use only if the tensor is guaranteed to be non-negative.
pub fn inner(&self) -> &CausalTensor<f64>
Trait Implementations§
Source§impl Clone for Concentration
impl Clone for Concentration
Source§fn clone(&self) -> Concentration
fn clone(&self) -> Concentration
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 Concentration
impl Debug for Concentration
Source§impl PartialEq for Concentration
impl PartialEq for Concentration
impl StructuralPartialEq for Concentration
Auto Trait Implementations§
impl Freeze for Concentration
impl RefUnwindSafe for Concentration
impl Send for Concentration
impl Sync for Concentration
impl Unpin for Concentration
impl UnwindSafe for Concentration
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