Struct partial_function::PartialFunction[][src]

pub struct PartialFunction<B, O> where
    B: PartialOrd
{ /* fields omitted */ }

Define a functions defined by multiple functions parts. See BoundedFunction. Uses bounds as [lower,higher], except in the case of a lower bound overlapping a higher bound. In this case, the lower bound always take precedence.

Methods

impl<B, O> PartialFunction<B, O> where
    B: PartialOrd
[src]

Creates a new PartialFunctionBuilder

Evaluates the partial function. Returns None if no function is defined.

Auto Trait Implementations

impl<B, O> Send for PartialFunction<B, O> where
    B: Send

impl<B, O> Sync for PartialFunction<B, O> where
    B: Sync