pub struct SlopeTrick { /* private fields */ }
Implementations§
Source§impl SlopeTrick
impl SlopeTrick
Sourcepub fn clear_left(&mut self)
pub fn clear_left(&mut self)
right to left accumulated minimum
f’(x) := min f(y) (y >= x)
Sourcepub fn clear_right(&mut self)
pub fn clear_right(&mut self)
left to right accumulated minimum
f’(x) := min f(y) (y <= x)
Sourcepub fn slide_minimum(&mut self, a: i64, b: i64)
pub fn slide_minimum(&mut self, a: i64, b: i64)
f’(x) := min f(y) (x-a <= y <= x-b)
Trait Implementations§
Source§impl Clone for SlopeTrick
impl Clone for SlopeTrick
Source§fn clone(&self) -> SlopeTrick
fn clone(&self) -> SlopeTrick
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SlopeTrick
impl Debug for SlopeTrick
Source§impl Default for SlopeTrick
impl Default for SlopeTrick
Source§fn default() -> SlopeTrick
fn default() -> SlopeTrick
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SlopeTrick
impl RefUnwindSafe for SlopeTrick
impl Send for SlopeTrick
impl Sync for SlopeTrick
impl Unpin for SlopeTrick
impl UnwindSafe for SlopeTrick
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