Struct partial_function::LowerPartialFunction[][src]

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

A lower partial function is a function that is defined by segments valid from [x..infinite[, or until it hits another function's start. It starts searching at -infinity and goes up to infinity, and takes the last seen function that contains the desired invariable value (x).

Example: [0..infinity[ = 5 [1..infinity[ = 10

f(0.5) = 5 f(1) = 10 f(70) = 10

Methods

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

Creates a new LowerPartialFunctionBuilder.

Evaluates the partial function. Returns None if no function is defined for the searched invariable value (x).

Auto Trait Implementations

impl<B, O> !Send for LowerPartialFunction<B, O>

impl<B, O> !Sync for LowerPartialFunction<B, O>