pub struct PhysicalField(pub CausalMultiVector<f64>);Expand description
Wrapper for CausalMultiVector representing a physical field (E, B, etc.). Implements Default to return a zero vector.
Tuple Fields§
§0: CausalMultiVector<f64>Implementations§
Source§impl PhysicalField
impl PhysicalField
pub fn new(val: CausalMultiVector<f64>) -> Self
pub fn inner(&self) -> &CausalMultiVector<f64>
pub fn into_inner(self) -> CausalMultiVector<f64>
Trait Implementations§
Source§impl Clone for PhysicalField
impl Clone for PhysicalField
Source§fn clone(&self) -> PhysicalField
fn clone(&self) -> PhysicalField
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 PhysicalField
impl Debug for PhysicalField
Source§impl Default for PhysicalField
impl Default for PhysicalField
Source§impl PartialEq for PhysicalField
impl PartialEq for PhysicalField
impl StructuralPartialEq for PhysicalField
Auto Trait Implementations§
impl Freeze for PhysicalField
impl RefUnwindSafe for PhysicalField
impl Send for PhysicalField
impl Sync for PhysicalField
impl Unpin for PhysicalField
impl UnwindSafe for PhysicalField
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