pub struct Linear<T> {
pub a: T,
pub b: T,
}
Expand description
$y = ax + b$の直線を表す。
Fields§
§a: T
直線の傾き
b: T
直線のy切片
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Linear<T>where
T: Freeze,
impl<T> RefUnwindSafe for Linear<T>where
T: RefUnwindSafe,
impl<T> Send for Linear<T>where
T: Send,
impl<T> Sync for Linear<T>where
T: Sync,
impl<T> Unpin for Linear<T>where
T: Unpin,
impl<T> UnwindSafe for Linear<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