pub enum CalcOp {
Show 16 variants
Sum,
Diff,
Prod,
Div,
Abs,
Sqrt,
Reci,
Max,
Min,
Qsum,
Sin,
Cos,
Tan,
Asin,
Acos,
Atan,
}Expand description
計算の項の演算
Variants§
Sum
和(1 つ以上)
Diff
a − b
Prod
積(1 つ以上)
Div
a / b(b = 0 は誤り)
Abs
|a|
Sqrt
√|a|(OpticStudio の SQRT と同じく負の値も絶対値の根)
Reci
1 / a(a = 0 は誤り)
Max
最大・最小(1 つ以上)
Min
Qsum
√(Σ a²)(1 つ以上)
Sin
三角関数(角度はラジアン。asin・acos の定義域の外は誤り)
Cos
Tan
Asin
Acos
Atan
Implementations§
Trait Implementations§
impl Copy for CalcOp
impl Eq for CalcOp
impl StructuralPartialEq for CalcOp
Auto Trait Implementations§
impl Freeze for CalcOp
impl RefUnwindSafe for CalcOp
impl Send for CalcOp
impl Sync for CalcOp
impl Unpin for CalcOp
impl UnsafeUnpin for CalcOp
impl UnwindSafe for CalcOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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