pub struct PrimitiveTyped<'a>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl IndexOrd<Option<PValue>> for PrimitiveTyped<'_>
impl IndexOrd<Option<PValue>> for PrimitiveTyped<'_>
Source§fn index_cmp(&self, idx: usize, elem: &Option<PValue>) -> Option<Ordering>
fn index_cmp(&self, idx: usize, elem: &Option<PValue>) -> Option<Ordering>
PartialOrd of the value at index
idx
with elem
.
For example, if self[idx] > elem, return Some(Greater).fn index_lt(&self, idx: usize, elem: &V) -> bool
fn index_le(&self, idx: usize, elem: &V) -> bool
fn index_gt(&self, idx: usize, elem: &V) -> bool
fn index_ge(&self, idx: usize, elem: &V) -> bool
Source§impl IndexOrd<PValue> for PrimitiveTyped<'_>
impl IndexOrd<PValue> for PrimitiveTyped<'_>
Source§fn index_cmp(&self, idx: usize, elem: &PValue) -> Option<Ordering>
fn index_cmp(&self, idx: usize, elem: &PValue) -> Option<Ordering>
PartialOrd of the value at index
idx
with elem
.
For example, if self[idx] > elem, return Some(Greater).fn index_lt(&self, idx: usize, elem: &V) -> bool
fn index_le(&self, idx: usize, elem: &V) -> bool
fn index_gt(&self, idx: usize, elem: &V) -> bool
fn index_ge(&self, idx: usize, elem: &V) -> bool
Auto Trait Implementations§
impl<'a> Freeze for PrimitiveTyped<'a>
impl<'a> !RefUnwindSafe for PrimitiveTyped<'a>
impl<'a> Send for PrimitiveTyped<'a>
impl<'a> Sync for PrimitiveTyped<'a>
impl<'a> Unpin for PrimitiveTyped<'a>
impl<'a> !UnwindSafe for PrimitiveTyped<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<S, T> SearchSorted<T> for S
impl<S, T> SearchSorted<T> for S
Source§fn search_sorted_by<F, N>(
&self,
find: F,
side_find: N,
side: SearchSortedSide,
) -> SearchResult
fn search_sorted_by<F, N>( &self, find: F, side_find: N, side: SearchSortedSide, ) -> SearchResult
find function is used to find the element if it exists, if element exists side_find will be
used to find desired index amongst equal values