Struct integrustio::distortion::Distortion
source · [−]pub struct Distortion { /* private fields */ }
Expand description
Main exported structure which holds distortions info.
Implementations
sourceimpl Distortion
impl Distortion
sourcepub fn new() -> Distortion
pub fn new() -> Distortion
Creates a new Distortion structure.
sourcepub fn new_init(array: &Array, spline: &Spline) -> Distortion
pub fn new_init(array: &Array, spline: &Spline) -> Distortion
Create an initialized Distortion with Spline.
sourcepub fn init(&mut self, array: &Array, spline: &Spline)
pub fn init(&mut self, array: &Array, spline: &Spline)
Initializes Distortion structure using Array and Spline coefficients.
sourcepub fn is_initialized(&self, array: &Array) -> bool
pub fn is_initialized(&self, array: &Array) -> bool
Check whether Distortion is initialized with the current Array.
Auto Trait Implementations
impl RefUnwindSafe for Distortion
impl Send for Distortion
impl Sync for Distortion
impl Unpin for Distortion
impl UnwindSafe for Distortion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more