#[repr(transparent)]pub struct Vector<T, const N: usize> { /* private fields */ }
Expand description
Vector of fixed size.
Implementations
sourceimpl<T, const N: usize> Vector<T, N>
impl<T, const N: usize> Vector<T, N>
sourcepub fn uninit() -> Vector<MaybeUninit<T>, N>
pub fn uninit() -> Vector<MaybeUninit<T>, N>
Create a vector with uninitialized content.
sourceimpl<T, const N: usize> Vector<MaybeUninit<T>, N>
impl<T, const N: usize> Vector<MaybeUninit<T>, N>
sourcepub unsafe fn assume_init(self) -> Vector<T, N>
pub unsafe fn assume_init(self) -> Vector<T, N>
Assume that vector content is initialized.
sourceimpl<T, const N: usize> Vector<T, N>
impl<T, const N: usize> Vector<T, N>
sourcepub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_mut_ptr(&mut self) -> *mut T
Get mutable pointer to the first element.
sourcepub unsafe fn get_unchecked(&self, i: usize) -> &T
pub unsafe fn get_unchecked(&self, i: usize) -> &T
Get reference to the elements without boundary checking.
sourcepub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut T
pub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut T
Get mutable reference to the elements without boundary checking.
sourceimpl<T, const N: usize> Vector<T, N>
impl<T, const N: usize> Vector<T, N>
sourcepub fn try_from_iter<I>(iter: I) -> Option<Self> where
I: Iterator<Item = T>,
pub fn try_from_iter<I>(iter: I) -> Option<Self> where
I: Iterator<Item = T>,
Try to conctruct a vector from iterator.
If iterator conatains less items than vector, then Err
is returned.
sourceimpl<T, const N: usize> Vector<T, N>
impl<T, const N: usize> Vector<T, N>
sourceimpl<T, const N: usize> Vector<T, N> where
T: Add<Output = T> + Mul<Output = T> + Copy,
impl<T, const N: usize> Vector<T, N> where
T: Add<Output = T> + Mul<Output = T> + Copy,
pub fn square_length(self) -> T
sourceimpl<T, const N: usize> Vector<T, N>
impl<T, const N: usize> Vector<T, N>
pub fn sum(self) -> T where
T: Add<Output = T>,
pub fn max(self) -> T where
T: PartialOrd,
pub fn min(self) -> T where
T: PartialOrd,
sourceimpl<T, const N: usize> Vector<T, N> where
T: PartialOrd,
impl<T, const N: usize> Vector<T, N> where
T: PartialOrd,
sourceimpl<T> Vector<T, 2>
impl<T> Vector<T, 2>
pub fn from_tuple((x, y): (T, T)) -> Self
pub fn into_tuple(self) -> (T, T)
sourceimpl<T> Vector<T, 3>
impl<T> Vector<T, 3>
pub fn from_tuple((x, y, z): (T, T, T)) -> Self
pub fn into_tuple(self) -> (T, T, T)
sourceimpl<T> Vector<T, 4>
impl<T> Vector<T, 4>
pub fn from_tuple((x, y, z, w): (T, T, T, T)) -> Self
pub fn into_tuple(self) -> (T, T, T, T)
sourceimpl<T: Float, const N: usize> Vector<T, N>
impl<T: Float, const N: usize> Vector<T, N>
pub fn abs(self) -> Self
pub fn abs_sub<B: Broadcast<Self>>(self, other: B) -> Self
pub fn signum(self) -> Self
pub fn cbrt(self) -> Self
pub fn sqrt(self) -> Self
pub fn vmin<B: Broadcast<Self>>(self, other: B) -> Self
pub fn vmax<B: Broadcast<Self>>(self, other: B) -> Self
pub fn clamp<A: Broadcast<Self>, B: Broadcast<Self>>(self, a: A, b: B) -> Self
pub fn acos(self) -> Self
pub fn asin(self) -> Self
pub fn atan(self) -> Self
pub fn atan2<B: Broadcast<Self>>(self, other: B) -> Self
pub fn cosh(self) -> Self
pub fn hypot<B: Broadcast<Self>>(self, other: B) -> Self
pub fn sinh(self) -> Self
pub fn tan(self) -> Self
pub fn tanh(self) -> Self
pub fn log2(self) -> Self
pub fn mul_add<A: Broadcast<Self>, B: Broadcast<Self>>(self, a: A, b: B) -> Self
pub fn exp(self) -> Self
pub fn powi<B: Broadcast<Vector<i32, N>>>(self, other: B) -> Self
pub fn ln(self) -> Self
pub fn powf<B: Broadcast<Self>>(self, other: B) -> Self
pub fn log<B: Broadcast<Self>>(self, other: B) -> Self
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn asinh(self) -> Self
pub fn acosh(self) -> Self
pub fn atanh(self) -> Self
pub fn floor(self) -> Self
pub fn ceil(self) -> Self
pub fn round(self) -> Self
pub fn trunc(self) -> Self
pub fn fract(self) -> Self
pub fn recip(self) -> Self
pub fn exp2(self) -> Self
pub fn log10(self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn exp_m1(self) -> Self
pub fn ln_1p(self) -> Self
Trait Implementations
sourceimpl<T, const N: usize> AbsDiffEq<Vector<T, N>> for Vector<T, N> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T, const N: usize> AbsDiffEq<Vector<T, N>> for Vector<T, N> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T, const N: usize> AddAssign<Vector<T, N>> for Vector<T, N> where
T: AddAssign,
impl<T, const N: usize> AddAssign<Vector<T, N>> for Vector<T, N> where
T: AddAssign,
sourcefn add_assign(&mut self, vec: Vector<T, N>)
fn add_assign(&mut self, vec: Vector<T, N>)
Performs the +=
operation. Read more
sourceimpl<T, const N: usize> BitAndAssign<Vector<T, N>> for Vector<T, N> where
T: BitAndAssign,
impl<T, const N: usize> BitAndAssign<Vector<T, N>> for Vector<T, N> where
T: BitAndAssign,
sourcefn bitand_assign(&mut self, other: Vector<T, N>)
fn bitand_assign(&mut self, other: Vector<T, N>)
Performs the &=
operation. Read more
sourceimpl<T, const N: usize> BitOrAssign<Vector<T, N>> for Vector<T, N> where
T: BitOrAssign,
impl<T, const N: usize> BitOrAssign<Vector<T, N>> for Vector<T, N> where
T: BitOrAssign,
sourcefn bitor_assign(&mut self, other: Vector<T, N>)
fn bitor_assign(&mut self, other: Vector<T, N>)
Performs the |=
operation. Read more
sourceimpl<T, const N: usize> BitXorAssign<Vector<T, N>> for Vector<T, N> where
T: BitXorAssign,
impl<T, const N: usize> BitXorAssign<Vector<T, N>> for Vector<T, N> where
T: BitXorAssign,
sourcefn bitxor_assign(&mut self, other: Vector<T, N>)
fn bitxor_assign(&mut self, other: Vector<T, N>)
Performs the ^=
operation. Read more
sourceimpl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
impl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
sourceimpl<T> Directional<Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
impl<T> Directional<Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
sourceimpl<T, const N: usize> Directional<Vector<T, N>> for Linear<T, N> where
Self: Transform<Vector<T, N>>,
T: Neg<Output = T> + Num + Copy,
Vector<T, N>: Normalize,
Matrix<T, N, N>: Inv<Output = Matrix<T, N, N>>,
impl<T, const N: usize> Directional<Vector<T, N>> for Linear<T, N> where
Self: Transform<Vector<T, N>>,
T: Neg<Output = T> + Num + Copy,
Vector<T, N>: Normalize,
Matrix<T, N, N>: Inv<Output = Matrix<T, N, N>>,
sourceimpl<T, const N: usize> Directional<Vector<T, N>> for Shift<T, N> where
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Directional<Vector<T, N>> for Shift<T, N> where
Self: Transform<Vector<T, N>>,
sourceimpl<T, const N: usize> Directional<Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Directional<Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
sourceimpl<D: Distribution<T>, T, const N: usize> Distribution<Vector<T, N>> for VectorDistribution<D, T, N>
impl<D: Distribution<T>, T, const N: usize> Distribution<Vector<T, N>> for VectorDistribution<D, T, N>
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T, const N: usize> Distribution<Vector<T, N>> for Normal where
Normal: Distribution<T>,
impl<T, const N: usize> Distribution<Vector<T, N>> for Normal where
Normal: Distribution<T>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float, const N: usize> Distribution<Vector<T, N>> for NonZero where
Normal: Distribution<Vector<T, N>>,
impl<T: Float, const N: usize> Distribution<Vector<T, N>> for NonZero where
Normal: Distribution<Vector<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float, const N: usize> Distribution<Vector<T, N>> for Unit where
NonZero: Distribution<Vector<T, N>>,
impl<T: Float, const N: usize> Distribution<Vector<T, N>> for Unit where
NonZero: Distribution<Vector<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T, const N: usize> DivAssign<T> for Vector<T, N> where
T: DivAssign + Copy,
impl<T, const N: usize> DivAssign<T> for Vector<T, N> where
T: DivAssign + Copy,
sourcefn div_assign(&mut self, a: T)
fn div_assign(&mut self, a: T)
Performs the /=
operation. Read more
sourceimpl<T, const N: usize> DivAssign<Vector<T, N>> for Vector<T, N> where
T: DivAssign,
impl<T, const N: usize> DivAssign<Vector<T, N>> for Vector<T, N> where
T: DivAssign,
sourcefn div_assign(&mut self, vec: Vector<T, N>)
fn div_assign(&mut self, vec: Vector<T, N>)
Performs the /=
operation. Read more
sourceimpl<T, const M: usize, const N: usize> Dot<Matrix<T, M, N>> for Vector<T, M> where
T: Mul<Output = T> + Add<Output = T> + Copy,
impl<T, const M: usize, const N: usize> Dot<Matrix<T, M, N>> for Vector<T, M> where
T: Mul<Output = T> + Add<Output = T> + Copy,
sourceimpl<T, const M: usize, const N: usize> Dot<Vector<T, N>> for Matrix<T, M, N> where
T: Mul<Output = T> + Add<Output = T> + Copy,
impl<T, const M: usize, const N: usize> Dot<Vector<T, N>> for Matrix<T, M, N> where
T: Mul<Output = T> + Add<Output = T> + Copy,
sourceimpl<T, const N: usize> Dot<Vector<T, N>> for Vector<T, N> where
T: Mul<Output = T> + Add<Output = T>,
impl<T, const N: usize> Dot<Vector<T, N>> for Vector<T, N> where
T: Mul<Output = T> + Add<Output = T>,
sourceimpl<T, const M: usize, const N: usize> From<&'_ Vector<Vector<T, N>, M>> for Matrix<T, M, N> where
T: Copy,
impl<T, const M: usize, const N: usize> From<&'_ Vector<Vector<T, N>, M>> for Matrix<T, M, N> where
T: Copy,
sourceimpl<'a, T, const M: usize, const N: usize> From<&'a Matrix<T, M, N>> for &'a Vector<Vector<T, N>, M>
impl<'a, T, const M: usize, const N: usize> From<&'a Matrix<T, M, N>> for &'a Vector<Vector<T, N>, M>
sourceimpl<'a, T, const M: usize, const N: usize> From<&'a mut Matrix<T, M, N>> for &'a mut Vector<Vector<T, N>, M>
impl<'a, T, const M: usize, const N: usize> From<&'a mut Matrix<T, M, N>> for &'a mut Vector<Vector<T, N>, M>
sourceimpl<T> From<Vector<T, 4_usize>> for Quaternion<T>
impl<T> From<Vector<T, 4_usize>> for Quaternion<T>
sourceimpl<T, const N: usize> IntoIterator for Vector<T, N>
impl<T, const N: usize> IntoIterator for Vector<T, N>
sourceimpl<'a, T, const N: usize> IntoIterator for &'a Vector<T, N>
impl<'a, T, const N: usize> IntoIterator for &'a Vector<T, N>
sourceimpl<'a, T, const N: usize> IntoIterator for &'a mut Vector<T, N>
impl<'a, T, const N: usize> IntoIterator for &'a mut Vector<T, N>
sourceimpl<T, const N: usize> MulAssign<T> for Vector<T, N> where
T: MulAssign + Copy,
impl<T, const N: usize> MulAssign<T> for Vector<T, N> where
T: MulAssign + Copy,
sourcefn mul_assign(&mut self, a: T)
fn mul_assign(&mut self, a: T)
Performs the *=
operation. Read more
sourceimpl<T, const N: usize> MulAssign<Vector<T, N>> for Vector<T, N> where
T: MulAssign,
impl<T, const N: usize> MulAssign<Vector<T, N>> for Vector<T, N> where
T: MulAssign,
sourcefn mul_assign(&mut self, vec: Vector<T, N>)
fn mul_assign(&mut self, vec: Vector<T, N>)
Performs the *=
operation. Read more
sourceimpl<T, const N: usize> NormL1 for Vector<T, N> where
T: NormL1<Output = T> + Add<Output = T>,
impl<T, const N: usize> NormL1 for Vector<T, N> where
T: NormL1<Output = T> + Add<Output = T>,
sourceimpl<T, const N: usize> NormL2 for Vector<T, N> where
T: Float,
impl<T, const N: usize> NormL2 for Vector<T, N> where
T: Float,
type Output = T
type Output = T
Type of the norm.
sourcefn norm_l2_sqr(self) -> T
fn norm_l2_sqr(self) -> T
Square norm of the element.
sourceimpl<T, const N: usize> NormLInf for Vector<T, N> where
T: NormLInf<Output = T> + PartialOrd,
impl<T, const N: usize> NormLInf for Vector<T, N> where
T: NormLInf<Output = T> + PartialOrd,
type Output = T
type Output = T
Type of the norm.
sourcefn norm_l_inf(self) -> T
fn norm_l_inf(self) -> T
Norm of the element.
sourceimpl<T, const M: usize, const N: usize> Outer<Vector<T, N>> for Vector<T, M> where
T: Mul<Output = T> + Copy,
impl<T, const M: usize, const N: usize> Outer<Vector<T, N>> for Vector<T, M> where
T: Mul<Output = T> + Copy,
sourceimpl<T, const N: usize> RemAssign<T> for Vector<T, N> where
T: RemAssign + Copy,
impl<T, const N: usize> RemAssign<T> for Vector<T, N> where
T: RemAssign + Copy,
sourcefn rem_assign(&mut self, a: T)
fn rem_assign(&mut self, a: T)
Performs the %=
operation. Read more
sourceimpl<T, const N: usize> RemAssign<Vector<T, N>> for Vector<T, N> where
T: RemAssign,
impl<T, const N: usize> RemAssign<Vector<T, N>> for Vector<T, N> where
T: RemAssign,
sourcefn rem_assign(&mut self, vec: Vector<T, N>)
fn rem_assign(&mut self, vec: Vector<T, N>)
Performs the %=
operation. Read more
sourceimpl<T, const N: usize> Reorder<Linear<T, N>, Vector<T, N>> for Shift<T, N> where
Linear<T, N>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Linear<T, N>, Vector<T, N>> for Shift<T, N> where
Linear<T, N>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
sourceimpl<T> Reorder<Rotation2<T>, Vector<T, 2_usize>> for Shift<T, 2> where
Rotation2<T>: Transform<Vector<T, 2>> + Copy,
Self: Transform<Vector<T, 2>>,
impl<T> Reorder<Rotation2<T>, Vector<T, 2_usize>> for Shift<T, 2> where
Rotation2<T>: Transform<Vector<T, 2>> + Copy,
Self: Transform<Vector<T, 2>>,
sourceimpl<T> Reorder<Rotation3<T>, Vector<T, 3_usize>> for Shift<T, 3> where
Rotation3<T>: Transform<Vector<T, 3>> + Copy,
Self: Transform<Vector<T, 3>>,
impl<T> Reorder<Rotation3<T>, Vector<T, 3_usize>> for Shift<T, 3> where
Rotation3<T>: Transform<Vector<T, 3>> + Copy,
Self: Transform<Vector<T, 3>>,
sourceimpl<T, const N: usize> Reorder<Scale<T>, Vector<T, N>> for Shift<T, N> where
Scale<T>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Scale<T>, Vector<T, N>> for Shift<T, N> where
Scale<T>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
sourceimpl<T> Reorder<Shift<T, 2_usize>, Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
Shift<T, 2>: Transform<Vector<T, 2>>,
impl<T> Reorder<Shift<T, 2_usize>, Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
Shift<T, 2>: Transform<Vector<T, 2>>,
sourceimpl<T> Reorder<Shift<T, 3_usize>, Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
Shift<T, 3>: Transform<Vector<T, 3>>,
impl<T> Reorder<Shift<T, 3_usize>, Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
Shift<T, 3>: Transform<Vector<T, 3>>,
sourceimpl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Linear<T, N> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Linear<T, N> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
sourceimpl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
sourceimpl<T, const N: usize> SubAssign<Vector<T, N>> for Vector<T, N> where
T: SubAssign,
impl<T, const N: usize> SubAssign<Vector<T, N>> for Vector<T, N> where
T: SubAssign,
sourcefn sub_assign(&mut self, vec: Vector<T, N>)
fn sub_assign(&mut self, vec: Vector<T, N>)
Performs the -=
operation. Read more
sourceimpl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
sourceimpl<T> Transform<Vector<T, 3_usize>> for Rotation3<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Transform<Vector<T, 3_usize>> for Rotation3<T> where
T: Neg<Output = T> + Num + Copy,
sourceimpl<T, const N: usize> Transform<Vector<T, N>> for Linear<T, N> where
T: Neg<Output = T> + Num + Copy,
impl<T, const N: usize> Transform<Vector<T, N>> for Linear<T, N> where
T: Neg<Output = T> + Num + Copy,
sourceimpl<T, const N: usize> Transform<Vector<T, N>> for Shift<T, N> where
T: Neg<Output = T> + Num + Copy,
impl<T, const N: usize> Transform<Vector<T, N>> for Shift<T, N> where
T: Neg<Output = T> + Num + Copy,
sourceimpl<T, const N: usize> Transform<Vector<T, N>> for Scale<T> where
T: Num + Inv<Output = T> + Copy,
impl<T, const N: usize> Transform<Vector<T, N>> for Scale<T> where
T: Num + Inv<Output = T> + Copy,
impl<T: Copy, const N: usize> Copy for Vector<T, N>
impl<T, const N: usize> StructuralPartialEq for Vector<T, N>
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Vector<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Vector<T, N> where
T: Send,
impl<T, const N: usize> Sync for Vector<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for Vector<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Vector<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more