[][src]Struct partial_function::DualBoundedFunction

pub struct DualBoundedFunction<B, O> {
    pub func: Box<dyn Fn(B) -> O>,
    pub lower: B,
    pub higher: B,
}

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

impl<B, O> DualBoundedFunction<B, O>[src]

pub fn new(func: Box<dyn Fn(B) -> O>, lower: B, higher: B) -> Self[src]

Constructs a new DualBoundedFunction.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.