pub struct PhysicalField<R>(pub CausalMultiVector<R>)
where
R: RealField;Expand description
Wrapper for CausalMultiVector representing a physical field (E, B, etc.). Implements Default to return a zero vector.
Tuple Fields§
§0: CausalMultiVector<R>Implementations§
Source§impl<R> PhysicalField<R>where
R: RealField,
impl<R> PhysicalField<R>where
R: RealField,
pub fn new(val: CausalMultiVector<R>) -> PhysicalField<R>
pub fn inner(&self) -> &CausalMultiVector<R>
pub fn into_inner(self) -> CausalMultiVector<R>
Trait Implementations§
Source§impl<R> Clone for PhysicalField<R>
impl<R> Clone for PhysicalField<R>
Source§fn clone(&self) -> PhysicalField<R>
fn clone(&self) -> PhysicalField<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 moreSource§impl<R> Debug for PhysicalField<R>
impl<R> Debug for PhysicalField<R>
Source§impl<R> Default for PhysicalField<R>where
R: RealField,
impl<R> Default for PhysicalField<R>where
R: RealField,
Source§fn default() -> PhysicalField<R>
fn default() -> PhysicalField<R>
Returns the “default value” for a type. Read more
Source§impl<R> PartialEq for PhysicalField<R>
impl<R> PartialEq for PhysicalField<R>
impl<R> StructuralPartialEq for PhysicalField<R>
Auto Trait Implementations§
impl<R> Freeze for PhysicalField<R>where
CausalMultiVector<R>: Freeze,
impl<R> RefUnwindSafe for PhysicalField<R>where
CausalMultiVector<R>: RefUnwindSafe,
impl<R> Send for PhysicalField<R>where
CausalMultiVector<R>: Send,
impl<R> Sync for PhysicalField<R>where
CausalMultiVector<R>: Sync,
impl<R> Unpin for PhysicalField<R>where
CausalMultiVector<R>: Unpin,
impl<R> UnsafeUnpin for PhysicalField<R>where
CausalMultiVector<R>: UnsafeUnpin,
impl<R> UnwindSafe for PhysicalField<R>where
CausalMultiVector<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more