Enum SearchBound

pub(in ::collections::btree) enum SearchBound<T>

Variants

Included(T)

An inclusive bound to look for, just like Bound::Included(T).

Excluded(T)

An exclusive bound to look for, just like Bound::Excluded(T).

AllIncluded

An unconditional inclusive bound, just like Bound::Unbounded.

AllExcluded

An unconditional exclusive bound.

Implementations

impl<T> SearchBound<T>

fn from_range(range_bound: Bound<T>) -> Self

Auto Trait Implementations

impl<T> Freeze for SearchBound<T> where T: Freeze + Freeze,

impl<T> RefUnwindSafe for SearchBound<T> where T: RefUnwindSafe + RefUnwindSafe,

impl<T> Send for SearchBound<T> where T: Send + Send,

impl<T> Sync for SearchBound<T> where T: Sync + Sync,

impl<T> Unpin for SearchBound<T> where T: Unpin + Unpin,

impl<T> UnsafeUnpin for SearchBound<T> where T: UnsafeUnpin + UnsafeUnpin,

impl<T> UnwindSafe for SearchBound<T> where T: UnwindSafe + UnwindSafe,

Blanket Implementations

impl<T> Any for SearchBound<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SearchBound<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SearchBound<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SearchBound<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for SearchBound<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for SearchBound<T>

impl<T, U> Into<U> for SearchBound<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SearchBound<T> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for SearchBound<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>