Bisect

Trait Bisect 

Source
pub trait Bisect {
    type Input;
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

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 Bisect for Range<f32>

Source§

type Input = f32

Source§

type Output = f32

Source§

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

Source§

impl Bisect for Range<f64>

Source§

type Input = f64

Source§

type Output = f64

Source§

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

Source§

impl Bisect for Range<i8>

Source§

type Input = i8

Source§

type Output = i8

Source§

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

Source§

impl Bisect for Range<i16>

Source§

type Input = i16

Source§

type Output = i16

Source§

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

Source§

impl Bisect for Range<i32>

Source§

type Input = i32

Source§

type Output = i32

Source§

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

Source§

impl Bisect for Range<i64>

Source§

type Input = i64

Source§

type Output = i64

Source§

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

Source§

impl Bisect for Range<i128>

Source§

type Input = i128

Source§

type Output = i128

Source§

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

Source§

impl Bisect for Range<isize>

Source§

type Input = isize

Source§

type Output = isize

Source§

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

Source§

impl Bisect for Range<u8>

Source§

type Input = u8

Source§

type Output = u8

Source§

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

Source§

impl Bisect for Range<u16>

Source§

type Input = u16

Source§

type Output = u16

Source§

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

Source§

impl Bisect for Range<u32>

Source§

type Input = u32

Source§

type Output = u32

Source§

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

Source§

impl Bisect for Range<u64>

Source§

type Input = u64

Source§

type Output = u64

Source§

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

Source§

impl Bisect for Range<u128>

Source§

type Input = u128

Source§

type Output = u128

Source§

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

Source§

impl Bisect for Range<usize>

Source§

type Input = usize

Source§

type Output = usize

Source§

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

Source§

impl Bisect for RangeFrom<f32>

Source§

type Input = f32

Source§

type Output = f32

Source§

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

Source§

impl Bisect for RangeFrom<f64>

Source§

type Input = f64

Source§

type Output = f64

Source§

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

Source§

impl Bisect for RangeFrom<i8>

Source§

type Input = i8

Source§

type Output = i8

Source§

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

Source§

impl Bisect for RangeFrom<i16>

Source§

type Input = i16

Source§

type Output = i16

Source§

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

Source§

impl Bisect for RangeFrom<i32>

Source§

type Input = i32

Source§

type Output = i32

Source§

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

Source§

impl Bisect for RangeFrom<i64>

Source§

type Input = i64

Source§

type Output = i64

Source§

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

Source§

impl Bisect for RangeFrom<i128>

Source§

type Input = i128

Source§

type Output = i128

Source§

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

Source§

impl Bisect for RangeFrom<isize>

Source§

type Input = isize

Source§

type Output = isize

Source§

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

Source§

impl Bisect for RangeFrom<u8>

Source§

type Input = u8

Source§

type Output = u8

Source§

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

Source§

impl Bisect for RangeFrom<u16>

Source§

type Input = u16

Source§

type Output = u16

Source§

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

Source§

impl Bisect for RangeFrom<u32>

Source§

type Input = u32

Source§

type Output = u32

Source§

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

Source§

impl Bisect for RangeFrom<u64>

Source§

type Input = u64

Source§

type Output = u64

Source§

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

Source§

impl Bisect for RangeFrom<u128>

Source§

type Input = u128

Source§

type Output = u128

Source§

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

Source§

impl Bisect for RangeFrom<usize>

Source§

type Input = usize

Source§

type Output = usize

Source§

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

Source§

impl Bisect for RangeTo<f32>

Source§

type Input = f32

Source§

type Output = f32

Source§

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

Source§

impl Bisect for RangeTo<f64>

Source§

type Input = f64

Source§

type Output = f64

Source§

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

Source§

impl Bisect for RangeTo<i8>

Source§

type Input = i8

Source§

type Output = i8

Source§

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

Source§

impl Bisect for RangeTo<i16>

Source§

type Input = i16

Source§

type Output = i16

Source§

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

Source§

impl Bisect for RangeTo<i32>

Source§

type Input = i32

Source§

type Output = i32

Source§

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

Source§

impl Bisect for RangeTo<i64>

Source§

type Input = i64

Source§

type Output = i64

Source§

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

Source§

impl Bisect for RangeTo<i128>

Source§

type Input = i128

Source§

type Output = i128

Source§

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

Source§

impl Bisect for RangeTo<isize>

Source§

type Input = isize

Source§

type Output = isize

Source§

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

Source§

impl Bisect for RangeTo<u8>

Source§

type Input = u8

Source§

type Output = u8

Source§

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

Source§

impl Bisect for RangeTo<u16>

Source§

type Input = u16

Source§

type Output = u16

Source§

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

Source§

impl Bisect for RangeTo<u32>

Source§

type Input = u32

Source§

type Output = u32

Source§

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

Source§

impl Bisect for RangeTo<u64>

Source§

type Input = u64

Source§

type Output = u64

Source§

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

Source§

impl Bisect for RangeTo<u128>

Source§

type Input = u128

Source§

type Output = u128

Source§

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

Source§

impl Bisect for RangeTo<usize>

Source§

type Input = usize

Source§

type Output = usize

Source§

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

Source§

impl<T> Bisect for [T]

Source§

type Input = T

Source§

type Output = usize

Source§

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

Implementors§