Skip to main content

Trisect

Trait Trisect 

Source
pub trait Trisect: Clone {
    type Key: FibonacciSearch;

    // Required methods
    fn trisect_key(self) -> Self::Key;
    fn trisect_unkey(key: Self::Key) -> Self;
}
Expand description

ternary search helper

Required Associated Types§

Required Methods§

Source

fn trisect_key(self) -> Self::Key

Source

fn trisect_unkey(key: Self::Key) -> Self

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 Trisect for f32

Source§

type Key = u32

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for f64

Source§

type Key = u64

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for i8

Source§

type Key = u8

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for i16

Source§

type Key = u16

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for i32

Source§

type Key = u32

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for i64

Source§

type Key = u64

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for i128

Source§

type Key = u128

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for isize

Source§

type Key = usize

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for u8

Source§

type Key = u8

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for u16

Source§

type Key = u16

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for u32

Source§

type Key = u32

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for u64

Source§

type Key = u64

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for u128

Source§

type Key = u128

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Source§

impl Trisect for usize

Source§

type Key = usize

Source§

fn trisect_key(self) -> Self::Key

Source§

fn trisect_unkey(key: Self::Key) -> Self

Implementors§