pub struct OwnedMem<T: Num> { /* private fields */ }

Trait Implementations§

source§

impl<T: Num> Clone for OwnedMem<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + Num> Debug for OwnedMem<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de, T> Deserialize<'de> for OwnedMem<T>
where T: Deserialize<'de> + Num,

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Num> Drop for OwnedMem<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T: Num> Memory for OwnedMem<T>

§

type Item = T

§

type Blas = CpuBlas<T>

§

type ElmentWise = CpuElementWise<T>

source§

fn len(&self) -> usize

source§

fn as_ptr(&self) -> *const Self::Item

確保しているメモリの先頭のポインタを返す offsetがある場合でもoffsetは考慮されない
source§

fn get_offset(&self) -> usize

source§

fn set_offset(&mut self, offset: usize)

source§

fn as_ptr_offset(&self, offset: usize) -> *const Self::Item

source§

fn value_offset(&self, offset: usize) -> Self::Item

source§

impl<T: Num> Owned for OwnedMem<T>

source§

fn from_vec(vec: Vec<Self::Item>) -> Self

source§

impl<T: Num + Serialize> Serialize for OwnedMem<T>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Num> ToOwnedMemory for OwnedMem<T>

§

type Owned = OwnedMem<T>

source§

fn to_owned_memory(&self) -> Self::Owned

source§

impl<T> ToViewMemory for OwnedMem<T>
where T: Num,

source§

fn to_view(&self, offset: usize) -> ViewMem<'_, T>

source§

impl<T> ToViewMutMemory for OwnedMem<T>
where T: Num,

source§

fn to_view_mut(&mut self, offset: usize) -> ViewMutMem<'_, T>

Auto Trait Implementations§

§

impl<T> Freeze for OwnedMem<T>

§

impl<T> RefUnwindSafe for OwnedMem<T>
where T: RefUnwindSafe,

§

impl<T> !Send for OwnedMem<T>

§

impl<T> !Sync for OwnedMem<T>

§

impl<T> Unpin for OwnedMem<T>
where T: Unpin,

§

impl<T> UnwindSafe for OwnedMem<T>

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,