pub struct FluxVortex {
pub position: [f64; 2],
pub flux_quantum: f64,
}Expand description
A single Abrikosov flux vortex carrying one flux quantum Φ₀.
Fields§
§position: [f64; 2]2-D position (x, y) of the vortex core in metres.
flux_quantum: f64Quantised magnetic flux carried by this vortex (Wb).
For a singly quantised vortex this equals FLUX_QUANTUM.
Implementations§
Source§impl FluxVortex
impl FluxVortex
Sourcepub fn distance_to(&self, other: &FluxVortex) -> f64
pub fn distance_to(&self, other: &FluxVortex) -> f64
Euclidean distance between this vortex and another.
Trait Implementations§
Source§impl Clone for FluxVortex
impl Clone for FluxVortex
Source§fn clone(&self) -> FluxVortex
fn clone(&self) -> FluxVortex
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 moreAuto Trait Implementations§
impl Freeze for FluxVortex
impl RefUnwindSafe for FluxVortex
impl Send for FluxVortex
impl Sync for FluxVortex
impl Unpin for FluxVortex
impl UnsafeUnpin for FluxVortex
impl UnwindSafe for FluxVortex
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