FibonacciSearch

Trait FibonacciSearch 

Source
pub trait FibonacciSearch: Sized {
    // Required method
    fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
       where T: PartialOrd,
             F: FnMut(Self) -> T;
}
Expand description

fibonacci search helper

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FibonacciSearch for u8

Source§

impl FibonacciSearch for u16

Source§

fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
where T: PartialOrd, F: FnMut(Self) -> T,

Source§

impl FibonacciSearch for u32

Source§

fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
where T: PartialOrd, F: FnMut(Self) -> T,

Source§

impl FibonacciSearch for u64

Source§

fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
where T: PartialOrd, F: FnMut(Self) -> T,

Source§

impl FibonacciSearch for u128

Source§

fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
where T: PartialOrd, F: FnMut(Self) -> T,

Source§

impl FibonacciSearch for usize

Source§

fn fibonacci_search<T, F>(self, other: Self, f: F) -> (Self, T)
where T: PartialOrd, F: FnMut(Self) -> T,

Implementors§