pub struct StraightLine<A>where
A: Float,{
pub intercept: A,
pub slope: A,
}
Expand description
A straight line y = m * x + b
Fields§
§intercept: A
The y-intercept of the line
slope: A
The slope of the line
Implementations§
Source§impl<A> StraightLine<A>where
A: Float,
impl<A> StraightLine<A>where
A: Float,
Trait Implementations§
Source§impl<A> Clone for StraightLine<A>where
A: Float + Clone,
impl<A> Clone for StraightLine<A>where
A: Float + Clone,
Source§fn clone(&self) -> StraightLine<A>
fn clone(&self) -> StraightLine<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<A> Copy for StraightLine<A>where
A: Float + Copy,
Auto Trait Implementations§
impl<A> Freeze for StraightLine<A>where
A: Freeze,
impl<A> RefUnwindSafe for StraightLine<A>where
A: RefUnwindSafe,
impl<A> Send for StraightLine<A>
impl<A> Sync for StraightLine<A>
impl<A> Unpin for StraightLine<A>where
A: Unpin,
impl<A> UnwindSafe for StraightLine<A>where
A: 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