pub struct SplitPointer<T> {
pub real: RealPointer<T>,
pub imag: RealPointer<T>,
}Expand description
Mutable split pointer for separate real/imaginary parts
Fields§
§real: RealPointer<T>§imag: RealPointer<T>Implementations§
Source§impl<T> SplitPointer<T>
impl<T> SplitPointer<T>
pub fn new(real: RealPointer<T>, imag: RealPointer<T>) -> Self
Sourcepub fn as_const(&self) -> ConstSplitPointer<T>
pub fn as_const(&self) -> ConstSplitPointer<T>
Convert to const split pointer
Sourcepub unsafe fn get(&self, i: usize) -> Complex<T>where
T: Copy,
pub unsafe fn get(&self, i: usize) -> Complex<T>where
T: Copy,
Array-like access for convenience
Sourcepub unsafe fn get_mut(&mut self, i: usize) -> SplitValue<T>
pub unsafe fn get_mut(&mut self, i: usize) -> SplitValue<T>
Mutable array-like access
Trait Implementations§
Source§impl<T: Clone> Clone for SplitPointer<T>
impl<T: Clone> Clone for SplitPointer<T>
Source§fn clone(&self) -> SplitPointer<T>
fn clone(&self) -> SplitPointer<T>
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<T: Debug> Debug for SplitPointer<T>
impl<T: Debug> Debug for SplitPointer<T>
impl<T: Copy> Copy for SplitPointer<T>
Auto Trait Implementations§
impl<T> Freeze for SplitPointer<T>
impl<T> RefUnwindSafe for SplitPointer<T>where
T: RefUnwindSafe,
impl<T> !Send for SplitPointer<T>
impl<T> !Sync for SplitPointer<T>
impl<T> Unpin for SplitPointer<T>
impl<T> UnwindSafe for SplitPointer<T>where
T: RefUnwindSafe,
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