pub struct Root2<T> {
pub a: T,
pub b: T,
pub c: T,
pub d: T,
}Expand description
The value (a + b*sqrt(c)) / d, with c >= 0 and d != 0.
Fields§
§a: TRational part of the numerator.
b: TCoefficient of the root.
c: TRadicand; must not be negative.
d: TDenominator; must not be zero.
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for Root2<T>
Auto Trait Implementations§
impl<T> Freeze for Root2<T>where
T: Freeze,
impl<T> RefUnwindSafe for Root2<T>where
T: RefUnwindSafe,
impl<T> Send for Root2<T>where
T: Send,
impl<T> Sync for Root2<T>where
T: Sync,
impl<T> Unpin for Root2<T>where
T: Unpin,
impl<T> UnwindSafe for Root2<T>where
T: UnwindSafe,
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