pub enum ArrayOut<'a, F, D>where
D: Dimension,{
ViewMut(ArrayViewMut<'a, F, D>),
Owned(Array<F, D>),
ToBeCloned(ArrayViewMut<'a, F, D>, Array<F, D>),
}
Variants§
Implementations§
Source§impl<F, D> ArrayOut<'_, F, D>
impl<F, D> ArrayOut<'_, F, D>
pub fn view(&self) -> ArrayView<'_, F, D>
pub fn view_mut(&mut self) -> ArrayViewMut<'_, F, D>
pub fn into_owned(self) -> Array<F, D>
pub fn is_view_mut(&mut self) -> bool
pub fn is_owned(&mut self) -> bool
pub fn clone_to_view_mut(self) -> Self
pub fn reversed_axes(self) -> Self
pub fn get_data_mut_ptr(&mut self) -> *mut F
Trait Implementations§
Auto Trait Implementations§
impl<'a, F, D> Freeze for ArrayOut<'a, F, D>where
D: Freeze,
impl<'a, F, D> RefUnwindSafe for ArrayOut<'a, F, D>where
D: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, F, D> Send for ArrayOut<'a, F, D>where
F: Send,
impl<'a, F, D> Sync for ArrayOut<'a, F, D>where
F: Sync,
impl<'a, F, D> Unpin for ArrayOut<'a, F, D>where
D: Unpin,
impl<'a, F, D> !UnwindSafe for ArrayOut<'a, F, D>
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