Point1

Struct Point1 

Source
#[repr(C)]
pub struct Point1<S> { pub x: S, }
Expand description

A point in 1-dimensional space.

This type is marked as #[repr(C)].

Fields§

§x: S

Implementations§

Source§

impl<S> Point1<S>

Source

pub const fn new(x: S) -> Point1<S>

Construct a new point, using the provided values.

Source

pub fn map<U, F>(self, f: F) -> Point1<U>
where F: FnMut(S) -> U,

Perform the given operation on each field in the point, returning a new point constructed from the operations.

Source

pub fn zip<S2, S3, F>(self, p2: Point1<S2>, f: F) -> Point1<S3>
where F: FnMut(S, S2) -> S3,

Construct a new point where each component is the result of applying the given operation to each pair of components of the given points.

Source§

impl<S> Point1<S>
where S: NumCast + Copy,

Source

pub fn cast<T>(&self) -> Option<Point1<T>>
where T: NumCast,

Component-wise casting to another type

Trait Implementations§

Source§

impl<S> AbsDiffEq for Point1<S>
where S: BaseFloat,

Source§

type Epsilon = <S as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> <S as AbsDiffEq>::Epsilon

The default tolerance to use when testing values that are close together. Read more
Source§

fn abs_diff_eq( &self, other: &Point1<S>, epsilon: <S as AbsDiffEq>::Epsilon, ) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
Source§

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
Source§

impl<'a, 'b, S> Add<&'a Vector1<S>> for &'b Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a Vector1<S>) -> Point1<S>

Performs the + operation. Read more
Source§

impl<'a, S> Add<&'a Vector1<S>> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a Vector1<S>) -> Point1<S>

Performs the + operation. Read more
Source§

impl<'a, S> Add<Vector1<S>> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the + operator.
Source§

fn add(self, other: Vector1<S>) -> Point1<S>

Performs the + operation. Read more
Source§

impl<S> Add<Vector1<S>> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the + operator.
Source§

fn add(self, other: Vector1<S>) -> Point1<S>

Performs the + operation. Read more
Source§

impl<S> AddAssign<Vector1<S>> for Point1<S>
where S: BaseNum + AddAssign,

Source§

fn add_assign(&mut self, vector: Vector1<S>)

Performs the += operation. Read more
Source§

impl<S> Array for Point1<S>
where S: BaseNum,

Source§

type Element = S

Source§

fn len() -> usize

Get the number of elements in the array type Read more
Source§

fn from_value(scalar: S) -> Point1<S>

Construct a vector from a single value, replicating it. Read more
Source§

fn sum(self) -> S
where S: Add<Output = S>,

The sum of the elements of the array.
Source§

fn product(self) -> S
where S: Mul<Output = S>,

The product of the elements of the array.
Source§

fn is_finite(&self) -> bool
where S: Float,

Whether all elements of the array are finite
Source§

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

Get the pointer to the first element of the array.
Source§

fn as_mut_ptr(&mut self) -> *mut Self::Element

Get a mutable pointer to the first element of the array.
Source§

fn swap_elements(&mut self, i: usize, j: usize)

Swap the elements at indices i and j in-place.
Source§

impl<S> AsMut<[S; 1]> for Point1<S>

Source§

fn as_mut(&mut self) -> &mut [S; 1]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<S> AsMut<(S,)> for Point1<S>

Source§

fn as_mut(&mut self) -> &mut (S,)

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<S> AsRef<[S; 1]> for Point1<S>

Source§

fn as_ref(&self) -> &[S; 1]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<S> AsRef<(S,)> for Point1<S>

Source§

fn as_ref(&self) -> &(S,)

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<S> Bounded for Point1<S>
where S: Bounded,

Source§

fn min_value() -> Point1<S>

Returns the smallest finite number this type can represent
Source§

fn max_value() -> Point1<S>

Returns the largest finite number this type can represent
Source§

impl<S> Clone for Point1<S>
where S: Clone,

Source§

fn clone(&self) -> Point1<S>

Returns a duplicate 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<S> Debug for Point1<S>
where S: Debug,

Source§

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

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

impl<'a, S> Div<S> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the / operator.
Source§

fn div(self, other: S) -> Point1<S>

Performs the / operation. Read more
Source§

impl<S> Div<S> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the / operator.
Source§

fn div(self, other: S) -> Point1<S>

Performs the / operation. Read more
Source§

impl<S> DivAssign<S> for Point1<S>
where S: BaseNum + DivAssign,

Source§

fn div_assign(&mut self, scalar: S)

Performs the /= operation. Read more
Source§

impl<S> ElementWise<S> for Point1<S>
where S: BaseNum,

Source§

fn add_element_wise(self, rhs: S) -> Point1<S>

Source§

fn sub_element_wise(self, rhs: S) -> Point1<S>

Source§

fn mul_element_wise(self, rhs: S) -> Point1<S>

Source§

fn div_element_wise(self, rhs: S) -> Point1<S>

Source§

fn rem_element_wise(self, rhs: S) -> Point1<S>

Source§

fn add_assign_element_wise(&mut self, rhs: S)

Source§

fn sub_assign_element_wise(&mut self, rhs: S)

Source§

fn mul_assign_element_wise(&mut self, rhs: S)

Source§

fn div_assign_element_wise(&mut self, rhs: S)

Source§

fn rem_assign_element_wise(&mut self, rhs: S)

Source§

impl<S> ElementWise for Point1<S>
where S: BaseNum,

Source§

fn add_element_wise(self, rhs: Point1<S>) -> Point1<S>

Source§

fn sub_element_wise(self, rhs: Point1<S>) -> Point1<S>

Source§

fn mul_element_wise(self, rhs: Point1<S>) -> Point1<S>

Source§

fn div_element_wise(self, rhs: Point1<S>) -> Point1<S>

Source§

fn rem_element_wise(self, rhs: Point1<S>) -> Point1<S>

Source§

fn add_assign_element_wise(&mut self, rhs: Point1<S>)

Source§

fn sub_assign_element_wise(&mut self, rhs: Point1<S>)

Source§

fn mul_assign_element_wise(&mut self, rhs: Point1<S>)

Source§

fn div_assign_element_wise(&mut self, rhs: Point1<S>)

Source§

fn rem_assign_element_wise(&mut self, rhs: Point1<S>)

Source§

impl<S> EuclideanSpace for Point1<S>
where S: BaseNum,

Source§

type Scalar = S

The associated scalar over which the space is defined. Read more
Source§

type Diff = Vector1<S>

The associated space of displacement vectors.
Source§

fn origin() -> Point1<S>

The point at the origin of the Euclidean space.
Source§

fn from_vec(v: Vector1<S>) -> Point1<S>

Convert a displacement vector to a point. Read more
Source§

fn to_vec(self) -> Vector1<S>

Convert a point to a displacement vector. Read more
Source§

fn dot(self, v: Vector1<S>) -> S

This is a weird one, but its useful for plane calculations.
Source§

fn midpoint(self, other: Self) -> Self

Returns the middle point between two other points. Read more
Source§

fn centroid(points: &[Self]) -> Self

Returns the average position of all points in the slice. Read more
Source§

impl<'a, S> From<&'a [S; 1]> for &'a Point1<S>

Source§

fn from(v: &'a [S; 1]) -> &'a Point1<S>

Converts to this type from the input type.
Source§

impl<'a, S> From<&'a (S,)> for &'a Point1<S>

Source§

fn from(v: &'a (S,)) -> &'a Point1<S>

Converts to this type from the input type.
Source§

impl<'a, S> From<&'a mut [S; 1]> for &'a mut Point1<S>

Source§

fn from(v: &'a mut [S; 1]) -> &'a mut Point1<S>

Converts to this type from the input type.
Source§

impl<'a, S> From<&'a mut (S,)> for &'a mut Point1<S>

Source§

fn from(v: &'a mut (S,)) -> &'a mut Point1<S>

Converts to this type from the input type.
Source§

impl<S> From<[S; 1]> for Point1<S>
where S: Clone,

Source§

fn from(v: [S; 1]) -> Point1<S>

Converts to this type from the input type.
Source§

impl<S> From<(S,)> for Point1<S>

Source§

fn from(v: (S,)) -> Point1<S>

Converts to this type from the input type.
Source§

impl<S> Hash for Point1<S>
where S: Hash,

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<S> Index<Range<usize>> for Point1<S>

Source§

type Output = [S]

The returned type after indexing.
Source§

fn index<'a>(&'a self, i: Range<usize>) -> &'a [S]

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

impl<S> Index<RangeFrom<usize>> for Point1<S>

Source§

type Output = [S]

The returned type after indexing.
Source§

fn index<'a>(&'a self, i: RangeFrom<usize>) -> &'a [S]

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

impl<S> Index<RangeFull> for Point1<S>

Source§

type Output = [S]

The returned type after indexing.
Source§

fn index<'a>(&'a self, i: RangeFull) -> &'a [S]

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

impl<S> Index<RangeTo<usize>> for Point1<S>

Source§

type Output = [S]

The returned type after indexing.
Source§

fn index<'a>(&'a self, i: RangeTo<usize>) -> &'a [S]

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

impl<S> Index<usize> for Point1<S>

Source§

type Output = S

The returned type after indexing.
Source§

fn index<'a>(&'a self, i: usize) -> &'a S

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

impl<S> IndexMut<Range<usize>> for Point1<S>

Source§

fn index_mut<'a>(&'a mut self, i: Range<usize>) -> &'a mut [S]

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

impl<S> IndexMut<RangeFrom<usize>> for Point1<S>

Source§

fn index_mut<'a>(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]

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

impl<S> IndexMut<RangeFull> for Point1<S>

Source§

fn index_mut<'a>(&'a mut self, i: RangeFull) -> &'a mut [S]

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

impl<S> IndexMut<RangeTo<usize>> for Point1<S>

Source§

fn index_mut<'a>(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]

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

impl<S> IndexMut<usize> for Point1<S>

Source§

fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut S

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

impl<S> Into<[S; 1]> for Point1<S>

Source§

fn into(self) -> [S; 1]

Converts this type into the (usually inferred) input type.
Source§

impl<S> Into<(S,)> for Point1<S>

Source§

fn into(self) -> (S,)

Converts this type into the (usually inferred) input type.
Source§

impl<S> MetricSpace for Point1<S>
where S: BaseFloat,

Source§

type Metric = S

The metric to be returned by the distance function.
Source§

fn distance2(self, other: Point1<S>) -> S

Returns the squared distance. Read more
Source§

fn distance(self, other: Self) -> Self::Metric
where Self::Metric: Float,

The distance between two values.
Source§

impl<'a, S> Mul<S> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the * operator.
Source§

fn mul(self, other: S) -> Point1<S>

Performs the * operation. Read more
Source§

impl<S> Mul<S> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the * operator.
Source§

fn mul(self, other: S) -> Point1<S>

Performs the * operation. Read more
Source§

impl<S> MulAssign<S> for Point1<S>
where S: BaseNum + MulAssign,

Source§

fn mul_assign(&mut self, scalar: S)

Performs the *= operation. Read more
Source§

impl<S> PartialEq for Point1<S>
where S: PartialEq,

Source§

fn eq(&self, other: &Point1<S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<S> RelativeEq for Point1<S>
where S: BaseFloat,

Source§

fn default_max_relative() -> <S as AbsDiffEq>::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
Source§

fn relative_eq( &self, other: &Point1<S>, epsilon: <S as AbsDiffEq>::Epsilon, max_relative: <S as AbsDiffEq>::Epsilon, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
Source§

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
Source§

impl<'a, S> Rem<S> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the % operator.
Source§

fn rem(self, other: S) -> Point1<S>

Performs the % operation. Read more
Source§

impl<S> Rem<S> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the % operator.
Source§

fn rem(self, other: S) -> Point1<S>

Performs the % operation. Read more
Source§

impl<S> RemAssign<S> for Point1<S>
where S: BaseNum + RemAssign,

Source§

fn rem_assign(&mut self, scalar: S)

Performs the %= operation. Read more
Source§

impl<'a, 'b, S> Sub<&'a Point1<S>> for &'b Point1<S>
where S: BaseNum,

Source§

type Output = Vector1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Point1<S>) -> Vector1<S>

Performs the - operation. Read more
Source§

impl<'a, S> Sub<&'a Point1<S>> for Point1<S>
where S: BaseNum,

Source§

type Output = Vector1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Point1<S>) -> Vector1<S>

Performs the - operation. Read more
Source§

impl<'a, 'b, S> Sub<&'a Vector1<S>> for &'b Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Vector1<S>) -> Point1<S>

Performs the - operation. Read more
Source§

impl<'a, S> Sub<&'a Vector1<S>> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Vector1<S>) -> Point1<S>

Performs the - operation. Read more
Source§

impl<'a, S> Sub<Point1<S>> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Vector1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Point1<S>) -> Vector1<S>

Performs the - operation. Read more
Source§

impl<'a, S> Sub<Vector1<S>> for &'a Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Vector1<S>) -> Point1<S>

Performs the - operation. Read more
Source§

impl<S> Sub<Vector1<S>> for Point1<S>
where S: BaseNum,

Source§

type Output = Point1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Vector1<S>) -> Point1<S>

Performs the - operation. Read more
Source§

impl<S> Sub for Point1<S>
where S: BaseNum,

Source§

type Output = Vector1<S>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Point1<S>) -> Vector1<S>

Performs the - operation. Read more
Source§

impl<S> SubAssign<Vector1<S>> for Point1<S>
where S: BaseNum + SubAssign,

Source§

fn sub_assign(&mut self, vector: Vector1<S>)

Performs the -= operation. Read more
Source§

impl<S> UlpsEq for Point1<S>
where S: BaseFloat,

Source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
Source§

fn ulps_eq( &self, other: &Point1<S>, epsilon: <S as AbsDiffEq>::Epsilon, max_ulps: u32, ) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
Source§

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
Source§

impl<S> Copy for Point1<S>
where S: Copy,

Source§

impl<S> Eq for Point1<S>
where S: Eq,

Source§

impl<S> StructuralPartialEq for Point1<S>

Auto Trait Implementations§

§

impl<S> Freeze for Point1<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for Point1<S>
where S: RefUnwindSafe,

§

impl<S> Send for Point1<S>
where S: Send,

§

impl<S> Sync for Point1<S>
where S: Sync,

§

impl<S> Unpin for Point1<S>
where S: Unpin,

§

impl<S> UnwindSafe for Point1<S>
where S: UnwindSafe,

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> 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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<Target, Original> Into2<Target> for Original
where Target: From2<Original>,

Source§

fn into2(self) -> Target

Performs the conversion.
Source§

impl<T> LowerBounded for T
where T: Bounded,

Source§

fn min_value() -> T

Returns the smallest finite number this type can represent
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<T> UpperBounded for T
where T: Bounded,

Source§

fn max_value() -> T

Returns the largest finite number this type can represent
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. 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> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

Source§

impl<T, Right> ClosedDivAssign<Right> for T
where T: ClosedDiv<Right> + DivAssign<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, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

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