pub struct Si<Value: Scalar, D: Dimensional, Pr: Prefixed>(pub Value, pub PhantomData<(D, Pr)>);Expand description
Tuple Fields§
§0: Value§1: PhantomData<(D, Pr)>Implementations§
Trait Implementations§
Source§impl<T, D, Pr> AddAssign<T> for Si<Var<T>, D, Pr>
impl<T, D, Pr> AddAssign<T> for Si<Var<T>, D, Pr>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
标量加法赋值 (+=)
Source§impl<T, D, Pr> AddAssign<Var<T>> for Si<Var<T>, D, Pr>
impl<T, D, Pr> AddAssign<Var<T>> for Si<Var<T>, D, Pr>
Source§fn add_assign(&mut self, rhs: Var<T>)
fn add_assign(&mut self, rhs: Var<T>)
Performs the
+= operation. Read moreSource§impl<V, D: Dimensional, Pr: Prefixed> AddAssign for Si<V, D, Pr>
impl<V, D: Dimensional, Pr: Prefixed> AddAssign for Si<V, D, Pr>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
加法赋值(要求相同前缀和量纲)
Source§impl<Value: Clone + Scalar, D: Clone + Dimensional, Pr: Clone + Prefixed> Clone for Si<Value, D, Pr>
impl<Value: Clone + Scalar, D: Clone + Dimensional, Pr: Clone + Prefixed> Clone for Si<Value, D, Pr>
Source§impl<Value: Debug + Scalar, D: Debug + Dimensional, Pr: Debug + Prefixed> Debug for Si<Value, D, Pr>
impl<Value: Debug + Scalar, D: Debug + Dimensional, Pr: Debug + Prefixed> Debug for Si<Value, D, Pr>
Source§impl<V, D1, D2, Pr1, Pr2> Div<Si<V, D2, Pr2>> for Si<V, D1, Pr1>where
V: Scalar + Div<V, Output: Scalar>,
D1: Dimensional + Div<D2, Output: Dimensional>,
D2: Dimensional,
Pr1: Prefixed + Div<Pr2, Output: Prefixed>,
Pr2: Prefixed,
impl<V, D1, D2, Pr1, Pr2> Div<Si<V, D2, Pr2>> for Si<V, D1, Pr1>where
V: Scalar + Div<V, Output: Scalar>,
D1: Dimensional + Div<D2, Output: Dimensional>,
D2: Dimensional,
Pr1: Prefixed + Div<Pr2, Output: Prefixed>,
Pr2: Prefixed,
Source§impl<T, D, Pr> DivAssign<T> for Si<Var<T>, D, Pr>
impl<T, D, Pr> DivAssign<T> for Si<Var<T>, D, Pr>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
标量除法赋值 (/=)
Source§impl<T, D, Pr> DivAssign<Var<T>> for Si<Var<T>, D, Pr>
impl<T, D, Pr> DivAssign<Var<T>> for Si<Var<T>, D, Pr>
Source§fn div_assign(&mut self, rhs: Var<T>)
fn div_assign(&mut self, rhs: Var<T>)
Performs the
/= operation. Read moreSource§impl<V, D1, D2, Pr1, Pr2> Mul<Si<V, D2, Pr2>> for Si<V, D1, Pr1>where
V: Scalar + Mul<V, Output: Scalar>,
D1: Dimensional + Mul<D2, Output: Dimensional>,
D2: Dimensional,
Pr1: Prefixed + Mul<Pr2, Output: Prefixed>,
Pr2: Prefixed,
impl<V, D1, D2, Pr1, Pr2> Mul<Si<V, D2, Pr2>> for Si<V, D1, Pr1>where
V: Scalar + Mul<V, Output: Scalar>,
D1: Dimensional + Mul<D2, Output: Dimensional>,
D2: Dimensional,
Pr1: Prefixed + Mul<Pr2, Output: Prefixed>,
Pr2: Prefixed,
Source§impl<T, D, Pr> MulAssign<T> for Si<Var<T>, D, Pr>
impl<T, D, Pr> MulAssign<T> for Si<Var<T>, D, Pr>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
标量乘法赋值 (*=)
Source§impl<T, D, Pr> MulAssign<Var<T>> for Si<Var<T>, D, Pr>
impl<T, D, Pr> MulAssign<Var<T>> for Si<Var<T>, D, Pr>
Source§fn mul_assign(&mut self, rhs: Var<T>)
fn mul_assign(&mut self, rhs: Var<T>)
Performs the
*= operation. Read moreSource§impl<T, D, Pr> SubAssign<T> for Si<Var<T>, D, Pr>
impl<T, D, Pr> SubAssign<T> for Si<Var<T>, D, Pr>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
标量加法赋值 (+=)
Source§impl<T, D, Pr> SubAssign<Var<T>> for Si<Var<T>, D, Pr>
impl<T, D, Pr> SubAssign<Var<T>> for Si<Var<T>, D, Pr>
Source§fn sub_assign(&mut self, rhs: Var<T>)
fn sub_assign(&mut self, rhs: Var<T>)
Performs the
-= operation. Read moreSource§impl<V, D: Dimensional, Pr: Prefixed> SubAssign for Si<V, D, Pr>
impl<V, D: Dimensional, Pr: Prefixed> SubAssign for Si<V, D, Pr>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
减法赋值(要求相同前缀和量纲)
impl<Value: Copy + Scalar, D: Copy + Dimensional, Pr: Copy + Prefixed> Copy for Si<Value, D, Pr>
impl<V: Scalar, Pr: Prefixed, D: Dimensional> Sied for Si<V, D, Pr>
impl<V: Scalar, Pr: Prefixed, D: Dimensional> Unitary for Si<V, D, Pr>
Auto Trait Implementations§
impl<Value, D, Pr> Freeze for Si<Value, D, Pr>where
Value: Freeze,
impl<Value, D, Pr> RefUnwindSafe for Si<Value, D, Pr>
impl<Value, D, Pr> Send for Si<Value, D, Pr>
impl<Value, D, Pr> Sync for Si<Value, D, Pr>
impl<Value, D, Pr> Unpin for Si<Value, D, Pr>
impl<Value, D, Pr> UnwindSafe for Si<Value, D, Pr>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more