Struct partial_function::PartialFunctionBuilder
[−]
[src]
pub struct PartialFunctionBuilder<B, O> where
B: PartialOrd, { /* fields omitted */ }
A builder to create an immutable PartialFunction.
Methods
impl<B, O> PartialFunctionBuilder<B, O> where
B: PartialOrd,
[src]
B: PartialOrd,
fn new() -> Self
[src]
Creates a new PartialFunctionBuilder.
fn with(self, lower: B, higher: B, func: fn(_: B) -> O) -> Self
[src]
Adds a bounded function bounded between [lower,higher[ of function func.
fn can_insert(&self, lower: &B, higher: &B) -> bool
[src]
Check if you can safely insert into the function list for the specified bounds.
fn build(self) -> PartialFunction<B, O>
[src]
Builds the PartialFunction from the functions added using with.