Trait nekolib_doc::algo::bisect::Bisect

source ·
pub trait Bisect {
    type Input;
    type Output;

    // Required method
    fn bisect(&self, pred: impl Fn(&Self::Input) -> bool) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn bisect(&self, pred: impl Fn(&Self::Input) -> bool) -> Self::Output

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Bisect for Range<f32>

source§

type Input = f32

source§

type Output = f32

source§

fn bisect(&self, pred: impl Fn(&f32) -> bool) -> f32

source§

impl Bisect for Range<f64>

source§

type Input = f64

source§

type Output = f64

source§

fn bisect(&self, pred: impl Fn(&f64) -> bool) -> f64

source§

impl Bisect for Range<i8>

source§

type Input = i8

source§

type Output = i8

source§

fn bisect(&self, pred: impl Fn(&i8) -> bool) -> i8

source§

impl Bisect for Range<i16>

source§

type Input = i16

source§

type Output = i16

source§

fn bisect(&self, pred: impl Fn(&i16) -> bool) -> i16

source§

impl Bisect for Range<i32>

source§

type Input = i32

source§

type Output = i32

source§

fn bisect(&self, pred: impl Fn(&i32) -> bool) -> i32

source§

impl Bisect for Range<i64>

source§

type Input = i64

source§

type Output = i64

source§

fn bisect(&self, pred: impl Fn(&i64) -> bool) -> i64

source§

impl Bisect for Range<i128>

source§

type Input = i128

source§

type Output = i128

source§

fn bisect(&self, pred: impl Fn(&i128) -> bool) -> i128

source§

impl Bisect for Range<isize>

source§

type Input = isize

source§

type Output = isize

source§

fn bisect(&self, pred: impl Fn(&isize) -> bool) -> isize

source§

impl Bisect for Range<u8>

source§

type Input = u8

source§

type Output = u8

source§

fn bisect(&self, pred: impl Fn(&u8) -> bool) -> u8

source§

impl Bisect for Range<u16>

source§

type Input = u16

source§

type Output = u16

source§

fn bisect(&self, pred: impl Fn(&u16) -> bool) -> u16

source§

impl Bisect for Range<u32>

source§

type Input = u32

source§

type Output = u32

source§

fn bisect(&self, pred: impl Fn(&u32) -> bool) -> u32

source§

impl Bisect for Range<u64>

source§

type Input = u64

source§

type Output = u64

source§

fn bisect(&self, pred: impl Fn(&u64) -> bool) -> u64

source§

impl Bisect for Range<u128>

source§

type Input = u128

source§

type Output = u128

source§

fn bisect(&self, pred: impl Fn(&u128) -> bool) -> u128

source§

impl Bisect for Range<usize>

source§

type Input = usize

source§

type Output = usize

source§

fn bisect(&self, pred: impl Fn(&usize) -> bool) -> usize

source§

impl Bisect for RangeFrom<f32>

source§

type Input = f32

source§

type Output = f32

source§

fn bisect(&self, pred: impl Fn(&f32) -> bool) -> f32

source§

impl Bisect for RangeFrom<f64>

source§

type Input = f64

source§

type Output = f64

source§

fn bisect(&self, pred: impl Fn(&f64) -> bool) -> f64

source§

impl Bisect for RangeFrom<i8>

source§

type Input = i8

source§

type Output = i8

source§

fn bisect(&self, pred: impl Fn(&i8) -> bool) -> i8

source§

impl Bisect for RangeFrom<i16>

source§

type Input = i16

source§

type Output = i16

source§

fn bisect(&self, pred: impl Fn(&i16) -> bool) -> i16

source§

impl Bisect for RangeFrom<i32>

source§

type Input = i32

source§

type Output = i32

source§

fn bisect(&self, pred: impl Fn(&i32) -> bool) -> i32

source§

impl Bisect for RangeFrom<i64>

source§

type Input = i64

source§

type Output = i64

source§

fn bisect(&self, pred: impl Fn(&i64) -> bool) -> i64

source§

impl Bisect for RangeFrom<i128>

source§

type Input = i128

source§

type Output = i128

source§

fn bisect(&self, pred: impl Fn(&i128) -> bool) -> i128

source§

impl Bisect for RangeFrom<isize>

source§

type Input = isize

source§

type Output = isize

source§

fn bisect(&self, pred: impl Fn(&isize) -> bool) -> isize

source§

impl Bisect for RangeFrom<u8>

source§

type Input = u8

source§

type Output = u8

source§

fn bisect(&self, pred: impl Fn(&u8) -> bool) -> u8

source§

impl Bisect for RangeFrom<u16>

source§

type Input = u16

source§

type Output = u16

source§

fn bisect(&self, pred: impl Fn(&u16) -> bool) -> u16

source§

impl Bisect for RangeFrom<u32>

source§

type Input = u32

source§

type Output = u32

source§

fn bisect(&self, pred: impl Fn(&u32) -> bool) -> u32

source§

impl Bisect for RangeFrom<u64>

source§

type Input = u64

source§

type Output = u64

source§

fn bisect(&self, pred: impl Fn(&u64) -> bool) -> u64

source§

impl Bisect for RangeFrom<u128>

source§

type Input = u128

source§

type Output = u128

source§

fn bisect(&self, pred: impl Fn(&u128) -> bool) -> u128

source§

impl Bisect for RangeFrom<usize>

source§

type Input = usize

source§

type Output = usize

source§

fn bisect(&self, pred: impl Fn(&usize) -> bool) -> usize

source§

impl Bisect for RangeTo<f32>

source§

type Input = f32

source§

type Output = f32

source§

fn bisect(&self, pred: impl Fn(&f32) -> bool) -> f32

source§

impl Bisect for RangeTo<f64>

source§

type Input = f64

source§

type Output = f64

source§

fn bisect(&self, pred: impl Fn(&f64) -> bool) -> f64

source§

impl Bisect for RangeTo<i8>

source§

type Input = i8

source§

type Output = i8

source§

fn bisect(&self, pred: impl Fn(&i8) -> bool) -> i8

source§

impl Bisect for RangeTo<i16>

source§

type Input = i16

source§

type Output = i16

source§

fn bisect(&self, pred: impl Fn(&i16) -> bool) -> i16

source§

impl Bisect for RangeTo<i32>

source§

type Input = i32

source§

type Output = i32

source§

fn bisect(&self, pred: impl Fn(&i32) -> bool) -> i32

source§

impl Bisect for RangeTo<i64>

source§

type Input = i64

source§

type Output = i64

source§

fn bisect(&self, pred: impl Fn(&i64) -> bool) -> i64

source§

impl Bisect for RangeTo<i128>

source§

type Input = i128

source§

type Output = i128

source§

fn bisect(&self, pred: impl Fn(&i128) -> bool) -> i128

source§

impl Bisect for RangeTo<isize>

source§

type Input = isize

source§

type Output = isize

source§

fn bisect(&self, pred: impl Fn(&isize) -> bool) -> isize

source§

impl Bisect for RangeTo<u8>

source§

type Input = u8

source§

type Output = u8

source§

fn bisect(&self, pred: impl Fn(&u8) -> bool) -> u8

source§

impl Bisect for RangeTo<u16>

source§

type Input = u16

source§

type Output = u16

source§

fn bisect(&self, pred: impl Fn(&u16) -> bool) -> u16

source§

impl Bisect for RangeTo<u32>

source§

type Input = u32

source§

type Output = u32

source§

fn bisect(&self, pred: impl Fn(&u32) -> bool) -> u32

source§

impl Bisect for RangeTo<u64>

source§

type Input = u64

source§

type Output = u64

source§

fn bisect(&self, pred: impl Fn(&u64) -> bool) -> u64

source§

impl Bisect for RangeTo<u128>

source§

type Input = u128

source§

type Output = u128

source§

fn bisect(&self, pred: impl Fn(&u128) -> bool) -> u128

source§

impl Bisect for RangeTo<usize>

source§

type Input = usize

source§

type Output = usize

source§

fn bisect(&self, pred: impl Fn(&usize) -> bool) -> usize

source§

impl<T> Bisect for [T]

source§

type Input = T

source§

type Output = usize

source§

fn bisect(&self, pred: impl Fn(&T) -> bool) -> usize

Implementors§