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