[][src]Struct partial_function::LowerPartialFunctionBuilder

pub struct LowerPartialFunctionBuilder<B, O> { /* fields omitted */ }

A builder to create an immutable PartialFunction.

Implementations

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

pub fn new() -> Self[src]

Constructs a new LowerPartialFunctionBuilder.

impl<B: PartialOrd, O> LowerPartialFunctionBuilder<B, O>[src]

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

Adds a bounded function bounded between [lower,higher[ of function func.

pub fn can_insert(&self, lower: &B) -> bool[src]

Check if you can safely insert into the function list for the specified bounds.

pub fn build(self) -> LowerPartialFunction<B, O>[src]

Builds the PartialFunction from the functions added using with.

Auto Trait Implementations

impl<B, O> !RefUnwindSafe for LowerPartialFunctionBuilder<B, O>

impl<B, O> !Send for LowerPartialFunctionBuilder<B, O>

impl<B, O> !Sync for LowerPartialFunctionBuilder<B, O>

impl<B, O> Unpin for LowerPartialFunctionBuilder<B, O> where
    B: Unpin

impl<B, O> !UnwindSafe for LowerPartialFunctionBuilder<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.