Skip to main content

FaerVec

Struct FaerVec 

Source
pub struct FaerVec<T>
where T: FaerScalar,
{ /* private fields */ }

Implementations§

Source§

impl<T> FaerVec<T>
where T: FaerScalar,

Source

pub fn check_for_nan(&self, label: &str) -> bool

Trait Implementations§

Source§

impl<T> Add for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FaerVec<T>) -> <FaerVec<T> as Add>::Output

Performs the + operation. Read more
Source§

impl<T> Add<&FaerVec<T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &FaerVec<T>) -> <&FaerVec<T> as Add<&FaerVec<T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<&FaerVec<T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &FaerVec<T>) -> <FaerVec<T> as Add<&FaerVec<T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<&FaerVec<T>> for FaerVecRef<'_, T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: &FaerVec<T>, ) -> <FaerVecRef<'_, T> as Add<&FaerVec<T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<&FaerVecRef<'_, T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: &FaerVecRef<'_, T>, ) -> <&FaerVec<T> as Add<&FaerVecRef<'_, T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<&FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: &FaerVecRef<'_, T>, ) -> <FaerVec<T> as Add<&FaerVecRef<'_, T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<FaerVec<T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FaerVec<T>) -> <&FaerVec<T> as Add<FaerVec<T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<FaerVec<T>> for FaerVecRef<'_, T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FaerVec<T>) -> <FaerVecRef<'_, T> as Add<FaerVec<T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<FaerVecRef<'_, T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: FaerVecRef<'_, T>, ) -> <&FaerVec<T> as Add<FaerVecRef<'_, T>>>::Output

Performs the + operation. Read more
Source§

impl<T> Add<FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: FaerVecRef<'_, T>, ) -> <FaerVec<T> as Add<FaerVecRef<'_, T>>>::Output

Performs the + operation. Read more
Source§

impl<T> AddAssign for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: FaerVec<T>)

Performs the += operation. Read more
Source§

impl<T> AddAssign<&FaerVec<T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: &FaerVec<T>)

Performs the += operation. Read more
Source§

impl<T> AddAssign<&FaerVec<T>> for FaerVecMut<'_, T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: &FaerVec<T>)

Performs the += operation. Read more
Source§

impl<T> AddAssign<&FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: &FaerVecRef<'_, T>)

Performs the += operation. Read more
Source§

impl<T> AddAssign<FaerVec<T>> for FaerVecMut<'_, T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: FaerVec<T>)

Performs the += operation. Read more
Source§

impl<T> AddAssign<FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn add_assign(&mut self, rhs: FaerVecRef<'_, T>)

Performs the += operation. Read more
Source§

impl<T> Clone for FaerVec<T>
where T: Clone + FaerScalar,

Source§

fn clone(&self) -> FaerVec<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for FaerVec<T>
where T: Debug + FaerScalar,

Source§

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

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

impl<T> DefaultDenseMatrix for FaerVec<T>
where T: FaerScalar,

Source§

type M = FaerMat<T>

Source§

impl<'a, T> Div<Scale<T>> for FaerVec<T>
where T: FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Scale<T>) -> <FaerVec<T> as Div<Scale<T>>>::Output

Performs the / operation. Read more
Source§

impl<T> From<Col<Own<T>>> for FaerVec<T>
where T: FaerScalar,

Source§

fn from(data: Col<Own<T>>) -> FaerVec<T>

Converts to this type from the input type.
Source§

impl<T> Index<usize> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &<FaerVec<T> as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T> IndexMut<usize> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn index_mut( &mut self, index: usize, ) -> &mut <FaerVec<T> as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<T> Mul<Scale<T>> for FaerVec<T>
where T: FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scale<T>) -> <FaerVec<T> as Mul<Scale<T>>>::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Scale<T>> for &FaerVec<T>
where T: FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scale<T>) -> <&FaerVec<T> as Mul<Scale<T>>>::Output

Performs the * operation. Read more
Source§

impl<'a, T> MulAssign<Scale<T>> for FaerVec<T>
where T: FaerScalar,

Source§

fn mul_assign(&mut self, rhs: Scale<T>)

Performs the *= operation. Read more
Source§

impl<T> PartialEq for FaerVec<T>
where T: PartialEq + FaerScalar,

Source§

fn eq(&self, other: &FaerVec<T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T> StructuralPartialEq for FaerVec<T>
where T: PartialEq + FaerScalar,

Source§

impl<T> Sub for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FaerVec<T>) -> <FaerVec<T> as Sub>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<&FaerVec<T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &FaerVec<T>) -> <&FaerVec<T> as Sub<&FaerVec<T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<&FaerVec<T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &FaerVec<T>) -> <FaerVec<T> as Sub<&FaerVec<T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<&FaerVec<T>> for FaerVecRef<'_, T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: &FaerVec<T>, ) -> <FaerVecRef<'_, T> as Sub<&FaerVec<T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<&FaerVecRef<'_, T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: &FaerVecRef<'_, T>, ) -> <&FaerVec<T> as Sub<&FaerVecRef<'_, T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<&FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: &FaerVecRef<'_, T>, ) -> <FaerVec<T> as Sub<&FaerVecRef<'_, T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<FaerVec<T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FaerVec<T>) -> <&FaerVec<T> as Sub<FaerVec<T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<FaerVec<T>> for FaerVecRef<'_, T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FaerVec<T>) -> <FaerVecRef<'_, T> as Sub<FaerVec<T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<FaerVecRef<'_, T>> for &FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: FaerVecRef<'_, T>, ) -> <&FaerVec<T> as Sub<FaerVecRef<'_, T>>>::Output

Performs the - operation. Read more
Source§

impl<T> Sub<FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type Output = FaerVec<T>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: FaerVecRef<'_, T>, ) -> <FaerVec<T> as Sub<FaerVecRef<'_, T>>>::Output

Performs the - operation. Read more
Source§

impl<T> SubAssign for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: FaerVec<T>)

Performs the -= operation. Read more
Source§

impl<T> SubAssign<&FaerVec<T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: &FaerVec<T>)

Performs the -= operation. Read more
Source§

impl<T> SubAssign<&FaerVec<T>> for FaerVecMut<'_, T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: &FaerVec<T>)

Performs the -= operation. Read more
Source§

impl<T> SubAssign<&FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: &FaerVecRef<'_, T>)

Performs the -= operation. Read more
Source§

impl<T> SubAssign<FaerVec<T>> for FaerVecMut<'_, T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: FaerVec<T>)

Performs the -= operation. Read more
Source§

impl<T> SubAssign<FaerVecRef<'_, T>> for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

fn sub_assign(&mut self, rhs: FaerVecRef<'_, T>)

Performs the -= operation. Read more
Source§

impl<T> Vector for FaerVec<T>
where T: FaerScalar,

Source§

type View<'a> = FaerVecRef<'a, T>

Source§

type ViewMut<'a> = FaerVecMut<'a, T>

Source§

type Index = FaerVecIndex

Source§

fn context(&self) -> &<FaerVec<T> as VectorCommon>::C

Get the context associated with this vector (for device placement, threading, etc.).
Source§

fn inner_mut(&mut self) -> &mut <FaerVec<T> as VectorCommon>::Inner

Get a mutable reference to the inner representation of the vector.
Source§

fn len(&self) -> usize

Get the per-batch length (number of states) in this vector. For batched vectors, this returns nstates, not nstates * nbatch.
Source§

fn get_index(&self, index: usize) -> <FaerVec<T> as VectorCommon>::T

Get the value at the specified index.
Source§

fn set_index(&mut self, index: usize, value: <FaerVec<T> as VectorCommon>::T)

Set the value at the specified index to value.
Source§

fn norm(&self, k: i32) -> T

Compute the $\ell_k$ norm: $(\sum_i |x_i|^k)^{1/k}$
Source§

fn squared_norm( &self, y: &FaerVec<T>, atol: &FaerVec<T>, rtol: <FaerVec<T> as VectorCommon>::T, ) -> <FaerVec<T> as VectorCommon>::T

Compute the squared weighted norm for error control: $\sum_i (x_i / (|y_i| \cdot \text{rtol} + \text{atol}_i))^2$ Read more
Source§

fn as_view(&self) -> <FaerVec<T> as Vector>::View<'_>

Create an immutable view of this vector.
Source§

fn as_view_mut(&mut self) -> <FaerVec<T> as Vector>::ViewMut<'_>

Create a mutable view of this vector.
Source§

fn get_batch(&self, batch: usize) -> <FaerVec<T> as Vector>::View<'_>

Get an immutable view of a single batch (with nbatch=1 context).
Source§

fn get_batch_mut(&mut self, batch: usize) -> <FaerVec<T> as Vector>::ViewMut<'_>

Get a mutable view of a single batch (with nbatch=1 context).
Source§

fn copy_from(&mut self, other: &FaerVec<T>)

Copy all values from other into this vector.
Source§

fn copy_from_view(&mut self, other: &<FaerVec<T> as Vector>::View<'_>)

Copy all values from a vector view into this vector.
Source§

fn fill(&mut self, value: <FaerVec<T> as VectorCommon>::T)

Fill all elements of this vector with value.
Source§

fn from_element( nstates: usize, value: <FaerVec<T> as VectorCommon>::T, ctx: <FaerVec<T> as VectorCommon>::C, ) -> FaerVec<T>

Create a vector of length nstates with all elements initialized to value.
Source§

fn from_vec( vec: Vec<<FaerVec<T> as VectorCommon>::T>, ctx: <FaerVec<T> as VectorCommon>::C, ) -> FaerVec<T>

Create a vector from a Rust Vec.
Source§

fn from_slice( slice: &[<FaerVec<T> as VectorCommon>::T], ctx: <FaerVec<T> as VectorCommon>::C, ) -> FaerVec<T>

Create a vector from a slice.
Source§

fn clone_as_vec(&self) -> Vec<<FaerVec<T> as VectorCommon>::T>

Clone this vector as a Rust Vec.
Source§

fn zeros(nstates: usize, ctx: <FaerVec<T> as VectorCommon>::C) -> FaerVec<T>

Create a vector of length nstates with all elements set to zero.
Source§

fn axpy( &mut self, alpha: <FaerVec<T> as VectorCommon>::T, x: &FaerVec<T>, beta: <FaerVec<T> as VectorCommon>::T, )

Compute the AXPY operation: self = alpha * x + beta * self
Source§

fn axpy_v( &mut self, alpha: <FaerVec<T> as VectorCommon>::T, x: &<FaerVec<T> as Vector>::View<'_>, beta: <FaerVec<T> as VectorCommon>::T, )

Compute the AXPY operation with a vector view: self = alpha * x + beta * self
Source§

fn batched_axpy( &mut self, alpha: &[<FaerVec<T> as VectorCommon>::T], x: &FaerVec<T>, beta: <FaerVec<T> as VectorCommon>::T, )

Per-batch AXPY: self[i]_b = alpha[b] * x[i]_b + beta * self[i]_b Read more
Source§

fn component_mul_assign(&mut self, other: &FaerVec<T>)

Element-wise multiplication: self_i *= other_i
Source§

fn component_div_assign(&mut self, other: &FaerVec<T>)

Element-wise division: self_i /= other_i
Source§

fn root_finding( &self, g1: &FaerVec<T>, ) -> (bool, <FaerVec<T> as VectorCommon>::T, i32)

Detect roots (zero crossings) between this vector (as g0) and another vector (g1). Read more
Source§

fn assign_at_indices( &mut self, indices: &<FaerVec<T> as Vector>::Index, value: <FaerVec<T> as VectorCommon>::T, )

Assign value to all elements at the specified indices.
Source§

fn copy_from_indices( &mut self, other: &FaerVec<T>, indices: &<FaerVec<T> as Vector>::Index, )

Copy values from other at the specified indices: self[indices[i]] = other[indices[i]]
Source§

fn gather( &mut self, other: &FaerVec<T>, indices: &<FaerVec<T> as Vector>::Index, )

Gather values from other at indices: self[i] = other[indices[i]]
Source§

fn scatter( &self, indices: &<FaerVec<T> as Vector>::Index, other: &mut FaerVec<T>, )

Scatter values to other at indices: other[indices[i]] = self[i]
Source§

fn total_len(&self) -> usize

Get the total number of elements stored, including all batches. Returns self.len() * self.context().nbatch().
Source§

fn is_empty(&self) -> bool

Check if the vector is empty.
Source§

fn assert_eq_st(&self, other: &Self, tol: Self::T)

Assert that this vector equals other within a scalar tolerance tol.
Source§

fn assert_eq_norm( &self, other: &Self, atol: &Self, rtol: Self::T, factor: Self::T, )

Assert that this vector equals other using a weighted norm (same as used by ODE solvers). Read more
Source§

fn assert_eq(&self, other: &Self, tol: &Self)

Assert that this vector equals other using a vector of per-element tolerances.
Source§

fn assert_eq_vec(s: Vec<Self::T>, other: Vec<Self::T>, tol: Vec<Self::T>)

Source§

impl<T> VectorCommon for FaerVec<T>
where T: Scalar + FaerScalar,

Source§

type T = T

Source§

type C = FaerContext

Source§

type Inner = Col<Own<T>>

Source§

fn inner(&self) -> &<FaerVec<T> as VectorCommon>::Inner

Source§

impl<T> VectorHost for FaerVec<T>
where T: FaerScalar,

Source§

fn as_mut_slice(&mut self) -> &mut [<FaerVec<T> as VectorCommon>::T]

Get the vector data as a mutable slice.
Source§

fn as_slice(&self) -> &[<FaerVec<T> as VectorCommon>::T]

Get the vector data as an immutable slice.

Auto Trait Implementations§

§

impl<T> Freeze for FaerVec<T>

§

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

§

impl<T> Send for FaerVec<T>

§

impl<T> Sync for FaerVec<T>

§

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

§

impl<T> UnsafeUnpin for FaerVec<T>

§

impl<T> UnwindSafe for FaerVec<T>

Blanket Implementations§

Source§

impl<Rhs, Lhs, Output> AddByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Add<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn add_by_ref(&self, rhs: &Rhs) -> <Lhs as AddByRef<Rhs>>::Output

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> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

Source§

impl<T, Right> ClosedAddAssign<Right> for T
where T: ClosedAdd<Right> + AddAssign<Right>,

Source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

Source§

impl<T, Right> ClosedMulAssign<Right> for T
where T: ClosedMul<Right> + MulAssign<Right>,

Source§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

Source§

impl<T, Right> ClosedSubAssign<Right> for T
where T: ClosedSub<Right> + SubAssign<Right>,

Source§

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

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<Rhs, Lhs, Output> SubByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Sub<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn sub_by_ref(&self, rhs: &Rhs) -> <Lhs as SubByRef<Rhs>>::Output

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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

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

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

Source§

fn vzip(self) -> V

Source§

impl<V, Rhs> VectorMutOpsByValue<Rhs> for V
where V: VectorCommon + AddAssign<Rhs> + SubAssign<Rhs>,

Source§

impl<V, Rhs, Output> VectorOpsByValue<Rhs, Output> for V
where V: VectorCommon + Add<Rhs, Output = Output> + Sub<Rhs, Output = Output>,

Source§

impl<RefT, V> VectorRef<V> for RefT
where V: Vector, RefT: VectorOpsByValue<V, V> + for<'a> VectorOpsByValue<&'a V, V> + for<'a> VectorOpsByValue<<V as Vector>::View<'a>, V> + for<'a, 'b> VectorOpsByValue<&'a <V as Vector>::View<'b>, V> + Mul<Scale<<V as VectorCommon>::T>, Output = V>,