pub struct ElectricPotential<R: RealField>(/* private fields */);Expand description
Electric Potential (Volts or J/C).
Implementations§
Source§impl<R: RealField> ElectricPotential<R>
impl<R: RealField> ElectricPotential<R>
pub fn new(val: R) -> Result<Self, CausalityError>
pub fn new_unchecked(val: R) -> Self
pub fn value(&self) -> R
Trait Implementations§
Source§impl<R: Clone + RealField> Clone for ElectricPotential<R>
impl<R: Clone + RealField> Clone for ElectricPotential<R>
Source§fn clone(&self) -> ElectricPotential<R>
fn clone(&self) -> ElectricPotential<R>
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<R: Copy + RealField> Copy for ElectricPotential<R>
Source§impl<R: RealField> Default for ElectricPotential<R>
impl<R: RealField> Default for ElectricPotential<R>
Source§impl<R: RealField + Into<f64>> From<ElectricPotential<R>> for f64
impl<R: RealField + Into<f64>> From<ElectricPotential<R>> for f64
Source§fn from(val: ElectricPotential<R>) -> Self
fn from(val: ElectricPotential<R>) -> Self
Converts to this type from the input type.
Source§impl<R: PartialOrd + RealField> PartialOrd for ElectricPotential<R>
impl<R: PartialOrd + RealField> PartialOrd for ElectricPotential<R>
impl<R: PartialEq + RealField> StructuralPartialEq for ElectricPotential<R>
Auto Trait Implementations§
impl<R> Freeze for ElectricPotential<R>where
R: Freeze,
impl<R> RefUnwindSafe for ElectricPotential<R>where
R: RefUnwindSafe,
impl<R> Send for ElectricPotential<R>where
R: Send,
impl<R> Sync for ElectricPotential<R>where
R: Sync,
impl<R> Unpin for ElectricPotential<R>where
R: Unpin,
impl<R> UnsafeUnpin for ElectricPotential<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ElectricPotential<R>where
R: UnwindSafe,
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