pub struct ElectricalLoad {
pub voltage: f64,
pub resistance: f64,
}Expand description
A simple electrical load described by voltage and resistance.
Fields§
§voltage: f64§resistance: f64Implementations§
Source§impl ElectricalLoad
impl ElectricalLoad
Trait Implementations§
Source§impl Clone for ElectricalLoad
impl Clone for ElectricalLoad
Source§fn clone(&self) -> ElectricalLoad
fn clone(&self) -> ElectricalLoad
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 moreSource§impl Debug for ElectricalLoad
impl Debug for ElectricalLoad
Source§impl PartialEq for ElectricalLoad
impl PartialEq for ElectricalLoad
Source§fn eq(&self, other: &ElectricalLoad) -> bool
fn eq(&self, other: &ElectricalLoad) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ElectricalLoad
impl StructuralPartialEq for ElectricalLoad
Auto Trait Implementations§
impl Freeze for ElectricalLoad
impl RefUnwindSafe for ElectricalLoad
impl Send for ElectricalLoad
impl Sync for ElectricalLoad
impl Unpin for ElectricalLoad
impl UnsafeUnpin for ElectricalLoad
impl UnwindSafe for ElectricalLoad
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