pub struct EquationField<'n>(pub &'n str);Expand description
Which equation a source term is being applied to.
Models are attached to equations by the name of the solved field, exactly as upstream does. This is stringly-typed for the same reason upstream is: the solver that assembles an equation and the case that adds a source to it do not share a type, and the field name is the only stable identifier they both know.
Tuple Fields§
§0: &'n strTrait Implementations§
Source§impl<'n> Clone for EquationField<'n>
impl<'n> Clone for EquationField<'n>
Source§fn clone(&self) -> EquationField<'n>
fn clone(&self) -> EquationField<'n>
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 moreimpl<'n> Copy for EquationField<'n>
Source§impl<'n> Debug for EquationField<'n>
impl<'n> Debug for EquationField<'n>
impl<'n> Eq for EquationField<'n>
Source§impl<'n> PartialEq for EquationField<'n>
impl<'n> PartialEq for EquationField<'n>
impl<'n> StructuralPartialEq for EquationField<'n>
Auto Trait Implementations§
impl<'n> Freeze for EquationField<'n>
impl<'n> RefUnwindSafe for EquationField<'n>
impl<'n> Send for EquationField<'n>
impl<'n> Sync for EquationField<'n>
impl<'n> Unpin for EquationField<'n>
impl<'n> UnsafeUnpin for EquationField<'n>
impl<'n> UnwindSafe for EquationField<'n>
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