pub struct DualBoundedFunction<B, O> {
pub func: Box<dyn Fn(B) -> O>,
pub lower: B,
pub higher: B,
}
Expand description
A regular function that is only defined between lower and higher. If two functions intersect their higher and lower bounds respectively. The second will take precedence where f(lower).
Fields§
§func: Box<dyn Fn(B) -> O>
The stored function f(x) = ???
lower: B
The lower bound of the function.
higher: B
The higher bound of the function.
Implementations§
Auto Trait Implementations§
impl<B, O> Freeze for DualBoundedFunction<B, O>where
B: Freeze,
impl<B, O> !RefUnwindSafe for DualBoundedFunction<B, O>
impl<B, O> !Send for DualBoundedFunction<B, O>
impl<B, O> !Sync for DualBoundedFunction<B, O>
impl<B, O> Unpin for DualBoundedFunction<B, O>where
B: Unpin,
impl<B, O> !UnwindSafe for DualBoundedFunction<B, O>
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