[−][src]Struct partial_function::PartialFunctionBuilder
A builder to create an immutable PartialFunction.
Implementations
impl<B, O> PartialFunctionBuilder<B, O>
[src]
impl<B: PartialOrd, O> PartialFunctionBuilder<B, O>
[src]
pub fn with(self, lower: B, higher: 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, higher: &B) -> bool
[src]
Check if you can safely insert into the function list for the specified bounds.
pub fn build(self) -> PartialFunction<B, O>
[src]
Builds the PartialFunction from the functions added using with.
Auto Trait Implementations
impl<B, O> !RefUnwindSafe for PartialFunctionBuilder<B, O>
impl<B, O> !Send for PartialFunctionBuilder<B, O>
impl<B, O> !Sync for PartialFunctionBuilder<B, O>
impl<B, O> Unpin for PartialFunctionBuilder<B, O> where
B: Unpin,
B: Unpin,
impl<B, O> !UnwindSafe for PartialFunctionBuilder<B, O>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,