Enum ArrayOut

Source
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§

§

ViewMut(ArrayViewMut<'a, F, D>)

§

Owned(Array<F, D>)

§

ToBeCloned(ArrayViewMut<'a, F, D>, Array<F, D>)

Implementations§

Source§

impl<F, D> ArrayOut<'_, F, D>
where F: Clone, D: Dimension,

Source

pub fn view(&self) -> ArrayView<'_, F, D>

Source

pub fn view_mut(&mut self) -> ArrayViewMut<'_, F, D>

Source

pub fn into_owned(self) -> Array<F, D>

Source

pub fn is_view_mut(&mut self) -> bool

Source

pub fn is_owned(&mut self) -> bool

Source

pub fn clone_to_view_mut(self) -> Self

Source

pub fn reversed_axes(self) -> Self

Source

pub fn get_data_mut_ptr(&mut self) -> *mut F

Trait Implementations§

Source§

impl<'a, F: Debug, D> Debug for ArrayOut<'a, F, D>
where D: Dimension + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.