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