Struct nannou::geom::vector::Vector4 [−][src]
#[repr(C)]pub struct Vector4<S = Default> { pub x: S, pub y: S, pub z: S, pub w: S, }
A 4-dimensional vector.
Fields
x: S
y: S
z: S
w: S
Implementations
impl<S> Vector4<S>
[src]
pub fn new(x: S, y: S, z: S, w: S) -> Vector4<S>
[src]
Construct a new vector, using the provided values.
pub fn from_value(scalar: S) -> Vector4<S> where
S: Clone,
[src]
S: Clone,
Construct a vector using the given value for each field.
pub fn len(&self) -> usize
[src]
The number of dimensions in the vector.
pub fn map<U, F>(self, f: F) -> Vector4<U> where
F: FnMut(S) -> U,
[src]
F: FnMut(S) -> U,
Perform the given operation on each field in the vector, returning a new vector constructed from the operations.
pub fn zip_map<T, U, F>(self, other: Vector4<T>, f: F) -> Vector4<U> where
F: FnMut(S, T) -> U,
[src]
F: FnMut(S, T) -> U,
Perform the given operation on each each field on both vectors, returning a new vector constructed from the operations.
pub fn is_finite(&self) -> bool where
S: BaseFloat,
[src]
S: BaseFloat,
Test whether or not the vector is infinite.
pub fn cast<T>(&self) -> Option<Vector4<T>> where
S: NumCast + Clone,
T: NumCast,
[src]
S: NumCast + Clone,
T: NumCast,
Component-wise casting to another type.
pub fn zero() -> Vector4<S> where
S: Zero,
[src]
S: Zero,
A zeroed vector.
pub fn is_zero(&self) -> bool where
S: PartialEq + Zero,
[src]
S: PartialEq + Zero,
Whether or not the vector is zeroed.
pub fn one() -> Vector4<S> where
S: One,
[src]
S: One,
A vector with 1
for each element.
pub fn is_one(&self) -> bool where
S: PartialEq + One,
[src]
S: PartialEq + One,
Whether or not each element in the vector is equal to 1
.
pub fn is_nan(&self) -> bool where
S: BaseFloat,
[src]
S: BaseFloat,
Tests whether or not any of the vector’s elements is NaN
.
pub fn sum(self) -> S where
S: Add<Output = S> + Copy,
[src]
S: Add<Output = S> + Copy,
Sum the fields of the vector.
pub fn product(self) -> S where
S: Mul<Output = S> + Copy,
[src]
S: Mul<Output = S> + Copy,
The product of the fields of the vector.
pub fn limit_magnitude(self, limit: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
Return a vector whose magnitude is limited to the given value.
pub fn with_magnitude(self, magnitude: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
Return a vector with the given magnitude.
pub fn normalize(self) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
Return a normalized vector.
If self
is_zero
, this returns self
.
pub fn magnitude(self) -> S where
S: BaseFloat,
[src]
S: BaseFloat,
The magnitude of the vector.
The magnitude represents the distance from the origin to the point described by the vector.
Note: This is equivalent to .magnitude2().sqrt()
. As a result, it can be quite a
bit more computationally efficient to use .magnitude2()
directly when feasible.
Example
let a = vec2(5.0, 0.0); let b = vec2(0.0, 5.0); assert_eq!(a.magnitude(), 5.0); assert_eq!(b.magnitude(), 5.0);
pub fn magnitude2(self) -> S where
S: BaseFloat,
[src]
S: BaseFloat,
The square of the magnitude.
See the magnitude
docs for details.
pub fn dot(self, other: Vector4<S>) -> S where
S: BaseFloat,
[src]
S: BaseFloat,
The dot product of self and the given vector.
impl<S> Vector4<S>
[src]
pub fn unit_x() -> Vector4<S> where
S: Zero + One,
[src]
S: Zero + One,
A unit vector in the x
direction.
pub fn unit_y() -> Vector4<S> where
S: Zero + One,
[src]
S: Zero + One,
A unit vector in the y
direction.
pub fn unit_z() -> Vector4<S> where
S: Zero + One,
[src]
S: Zero + One,
A unit vector in the z
direction.
pub fn unit_w() -> Vector4<S> where
S: Zero + One,
[src]
S: Zero + One,
A unit vector in the w
direction.
pub fn truncate(self) -> Vector3<S>
[src]
Create a Vector3
, dropping the w
value.
pub fn truncate_n(&self, n: isize) -> Vector3<S> where
S: Copy,
[src]
S: Copy,
Create a Vector3
, dropping the nth element.
Methods from Deref<Target = [S; 4]>
pub fn as_slice(&self) -> &[T]ⓘ
[src]
array_methods
)Returns a slice containing the entire array. Equivalent to &s[..]
.
pub fn as_mut_slice(&mut self) -> &mut [T]ⓘ
[src]
array_methods
)Returns a mutable slice containing the entire array. Equivalent to
&mut s[..]
.
pub fn each_ref(&self) -> [&T; N]
[src]
array_methods
)Borrows each element and returns an array of references with the same
size as self
.
Example
#![feature(array_methods)] let floats = [3.1, 2.7, -1.0]; let float_refs: [&f64; 3] = floats.each_ref(); assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
This method is particularly useful if combined with other methods, like
map
. This way, you can avoid moving the original
array if its elements are not Copy
.
#![feature(array_methods, array_map)] let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()]; let is_ascii = strings.each_ref().map(|s| s.is_ascii()); assert_eq!(is_ascii, [true, false, true]); // We can still access the original array: it has not been moved. assert_eq!(strings.len(), 3);
pub fn each_mut(&mut self) -> [&mut T; N]
[src]
array_methods
)Borrows each element mutably and returns an array of mutable references
with the same size as self
.
Example
#![feature(array_methods)] let mut floats = [3.1, 2.7, -1.0]; let float_refs: [&mut f64; 3] = floats.each_mut(); *float_refs[0] = 0.0; assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]); assert_eq!(floats, [0.0, 2.7, -1.0]);
Trait Implementations
impl<S> AbsDiffEq<Vector4<S>> for Vector4<S> where
S: AbsDiffEq,
S::Epsilon: Copy,
[src]
S: AbsDiffEq,
S::Epsilon: Copy,
type Epsilon = S::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> S::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
impl<S> Add<Vector4<S>> for Vector4<S> where
S: Add<Output = S>,
[src]
S: Add<Output = S>,
type Output = Vector4<S>
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<S> AddAssign<Vector4<S>> for Vector4<S> where
S: AddAssign,
[src]
S: AddAssign,
fn add_assign(&mut self, other: Self)
[src]
impl<S> Array for Vector4<S> where
S: Copy,
[src]
S: Copy,
type Element = S
fn len() -> usize
[src]
fn from_value(scalar: S) -> Vector4<S>
[src]
fn sum(self) -> S where
S: Add<Output = S>,
[src]
S: Add<Output = S>,
fn product(self) -> S where
S: Mul<Output = S>,
[src]
S: Mul<Output = S>,
fn is_finite(&self) -> bool where
S: BaseFloat,
[src]
S: BaseFloat,
pub fn as_ptr(&self) -> *const Self::Element
[src]
pub fn as_mut_ptr(&mut self) -> *mut Self::Element
[src]
pub fn swap_elements(&mut self, i: usize, j: usize)
[src]
impl<S> AsMut<[S; 4]> for Vector4<S>
[src]
impl<S> AsRef<[S; 4]> for Vector4<S>
[src]
impl<S> Bounded for Vector4<S> where
S: Bounded,
[src]
S: Bounded,
impl<S: Clone> Clone for Vector4<S>
[src]
impl<S: Copy> Copy for Vector4<S>
[src]
impl<S: Debug> Debug for Vector4<S>
[src]
impl<S: Default> Default for Vector4<S>
[src]
impl<S> Deref for Vector4<S>
[src]
impl<S> DerefMut for Vector4<S>
[src]
impl<'de, S> Deserialize<'de> for Vector4<S> where
S: Deserialize<'de>,
[src]
S: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S> Distribution<Vector4<S>> for Standard where
Standard: Distribution<S>,
[src]
Standard: Distribution<S>,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector4<S>
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>ⓘ where
R: Rng,
[src]
R: Rng,
impl<S> Div<S> for Vector4<S> where
S: Copy + Div<Output = S>,
[src]
S: Copy + Div<Output = S>,
type Output = Vector4<S>
The resulting type after applying the /
operator.
fn div(self, scalar: S) -> Self
[src]
impl<S> Div<Vector4<S>> for Vector4<S> where
S: Div<Output = S>,
[src]
S: Div<Output = S>,
type Output = Vector4<S>
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl<S> DivAssign<S> for Vector4<S> where
S: Copy + DivAssign,
[src]
S: Copy + DivAssign,
fn div_assign(&mut self, scalar: S)
[src]
impl<S> DivAssign<Vector4<S>> for Vector4<S> where
S: Copy + DivAssign,
[src]
S: Copy + DivAssign,
fn div_assign(&mut self, other: Self)
[src]
impl<S> ElementWise<S> for Vector4<S> where
S: BaseNum,
[src]
S: BaseNum,
fn add_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn sub_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn mul_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn div_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn rem_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn add_assign_element_wise(&mut self, rhs: S)
[src]
fn sub_assign_element_wise(&mut self, rhs: S)
[src]
fn mul_assign_element_wise(&mut self, rhs: S)
[src]
fn div_assign_element_wise(&mut self, rhs: S)
[src]
fn rem_assign_element_wise(&mut self, rhs: S)
[src]
impl<S> ElementWise<Vector4<S>> for Vector4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn add_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn sub_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn mul_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn div_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn rem_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn add_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn sub_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn mul_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn div_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn rem_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
impl<S: Eq> Eq for Vector4<S>
[src]
impl<S> EuclideanSpace for Vector4<S> where
S: BaseNum,
[src]
S: BaseNum,
type Scalar = S
The associated scalar over which the space is defined. Read more
type Diff = Vector4<S>
The associated space of displacement vectors.
fn origin() -> Self
[src]
fn from_vec(v: Vector4<S>) -> Self
[src]
fn to_vec(self) -> Vector4<S>
[src]
fn dot(self, other: Vector4<S>) -> S
[src]
pub fn midpoint(self, other: Self) -> Self
[src]
pub fn centroid(points: &[Self]) -> Self
[src]
impl<S> From<[S; 2]> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<[S; 3]> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<[S; 4]> for Vector4<S> where
S: Copy,
[src]
S: Copy,
impl<S> From<(S, S, S, S)> for Vector4<S>
[src]
impl<S> From<(S, S, S)> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<(S, S)> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<Point2D<f32, UnknownUnit>> for Vector4<S> where
S: From<f32> + Zero,
[src]
S: From<f32> + Zero,
impl<S> From<Point2D<f64, UnknownUnit>> for Vector4<S> where
S: From<f64> + Zero,
[src]
S: From<f64> + Zero,
impl<S> From<Size2D<f32, UnknownUnit>> for Vector4<S> where
S: From<f32> + Zero,
[src]
S: From<f32> + Zero,
impl<S> From<Vector2<S>> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<Vector2D<f32, UnknownUnit>> for Vector4<S> where
S: From<f32> + Zero,
[src]
S: From<f32> + Zero,
impl<S> From<Vector3<S>> for Vector4<S> where
S: Zero,
[src]
S: Zero,
impl<S> From<Vector4<S>> for Vector4<S>
[src]
impl<S: Hash> Hash for Vector4<S>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<S> Index<Range<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: Range<usize>) -> &'a [S]ⓘ
[src]
impl<S> Index<RangeFrom<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeFrom<usize>) -> &'a [S]ⓘ
[src]
impl<S> Index<RangeFull> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeFull) -> &'a [S]ⓘ
[src]
impl<S> Index<RangeTo<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeTo<usize>) -> &'a [S]ⓘ
[src]
impl<S> Index<usize> for Vector4<S>
[src]
impl<S> IndexMut<Range<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: Range<usize>) -> &'a mut [S]ⓘ
[src]
impl<S> IndexMut<RangeFrom<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]ⓘ
[src]
impl<S> IndexMut<RangeFull> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeFull) -> &'a mut [S]ⓘ
[src]
impl<S> IndexMut<RangeTo<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]ⓘ
[src]
impl<S> IndexMut<usize> for Vector4<S>
[src]
impl<S> InnerSpace for Vector4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn dot(self, other: Vector4<S>) -> S
[src]
pub fn is_perpendicular(self, other: Self) -> bool
[src]
pub fn magnitude2(self) -> Self::Scalar
[src]
pub fn magnitude(self) -> Self::Scalar
[src]
pub fn angle(self, other: Self) -> Rad<Self::Scalar>
[src]
pub fn normalize(self) -> Self
[src]
pub fn normalize_to(self, magnitude: Self::Scalar) -> Self
[src]
pub fn project_on(self, other: Self) -> Self
[src]
impl<S> Into<[S; 4]> for Vector4<S>
[src]
impl<S> Into<(S, S, S, S)> for Vector4<S>
[src]
impl Into<Point2D<f32, UnknownUnit>> for Vector4
[src]
impl<S> Into<Point2D<f64, UnknownUnit>> for Vector4<S> where
S: Into<f64>,
[src]
S: Into<f64>,
impl Into<Size2D<f32, UnknownUnit>> for Vector4
[src]
impl Into<Vector2D<f32, UnknownUnit>> for Vector4
[src]
impl<S> Into<Vector4<S>> for Vector4<S>
[src]
impl<S> MetricSpace for Vector4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Metric = S
The metric to be returned by the distance
function.
fn distance2(self, other: Self) -> S
[src]
pub fn distance(self, other: Self) -> Self::Metric
[src]
impl<S> Mul<S> for Vector4<S> where
S: Copy + Mul<Output = S>,
[src]
S: Copy + Mul<Output = S>,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, scalar: S) -> Self
[src]
impl<S> Mul<Vector4<S>> for Vector4<S> where
S: Mul<Output = S>,
[src]
S: Mul<Output = S>,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl<S> MulAssign<S> for Vector4<S> where
S: Copy + MulAssign,
[src]
S: Copy + MulAssign,
fn mul_assign(&mut self, scalar: S)
[src]
impl<S> MulAssign<Vector4<S>> for Vector4<S> where
S: Copy + MulAssign,
[src]
S: Copy + MulAssign,
fn mul_assign(&mut self, other: Self)
[src]
impl<S> Neg for Vector4<S> where
S: Neg<Output = S>,
[src]
S: Neg<Output = S>,
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn neg(self) -> Vector4<S>
[src]
impl<S: PartialEq> PartialEq<Vector4<S>> for Vector4<S>
[src]
impl<S> RelativeEq<Vector4<S>> for Vector4<S> where
S: RelativeEq,
S::Epsilon: Copy,
[src]
S: RelativeEq,
S::Epsilon: Copy,
fn default_max_relative() -> S::Epsilon
[src]
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
pub fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<S> Rem<S> for Vector4<S> where
S: Copy + Rem<Output = S>,
[src]
S: Copy + Rem<Output = S>,
type Output = Vector4<S>
The resulting type after applying the %
operator.
fn rem(self, scalar: S) -> Self
[src]
impl<S> Rem<Vector4<S>> for Vector4<S> where
S: Rem<Output = S>,
[src]
S: Rem<Output = S>,
type Output = Vector4<S>
The resulting type after applying the %
operator.
fn rem(self, other: Self) -> Self
[src]
impl<S> RemAssign<S> for Vector4<S> where
S: Copy + RemAssign,
[src]
S: Copy + RemAssign,
fn rem_assign(&mut self, scalar: S)
[src]
impl<S> RemAssign<Vector4<S>> for Vector4<S> where
S: Copy + RemAssign,
[src]
S: Copy + RemAssign,
fn rem_assign(&mut self, other: Self)
[src]
impl<S> Serialize for Vector4<S> where
S: Serialize,
[src]
S: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<S> StructuralEq for Vector4<S>
[src]
impl<S> StructuralPartialEq for Vector4<S>
[src]
impl<S> Sub<Vector4<S>> for Vector4<S> where
S: Sub<Output = S>,
[src]
S: Sub<Output = S>,
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<S> SubAssign<Vector4<S>> for Vector4<S> where
S: SubAssign,
[src]
S: SubAssign,
fn sub_assign(&mut self, other: Self)
[src]
impl<'a, S: 'a> Sum<&'a Vector4<S>> for Vector4<S> where
S: 'a + Clone + Zero + Add<Output = S>,
[src]
S: 'a + Clone + Zero + Add<Output = S>,
impl<S> Sum<Vector4<S>> for Vector4<S> where
S: Zero + Add<Output = S>,
[src]
S: Zero + Add<Output = S>,
impl<S> UlpsEq<Vector4<S>> for Vector4<S> where
S: UlpsEq,
S::Epsilon: Copy,
[src]
S: UlpsEq,
S::Epsilon: Copy,
fn default_max_ulps() -> u32
[src]
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
pub fn ulps_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_ulps: u32
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_ulps: u32
) -> bool
impl<S> VectorSpace for Vector4<S> where
S: BaseNum,
[src]
S: BaseNum,
type Scalar = S
The associated scalar.
pub fn lerp(self, other: Self, amount: Self::Scalar) -> Self
[src]
impl<S> Zero for Vector4<S> where
S: PartialEq + Zero,
[src]
S: PartialEq + Zero,
Auto Trait Implementations
impl<S> RefUnwindSafe for Vector4<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Vector4<S> where
S: Send,
S: Send,
impl<S> Sync for Vector4<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Vector4<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Vector4<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast<T> for T
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> NodeId for T where
T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send,
[src]
T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> Zero for T where
T: Zero,
T: Zero,