pub struct Range<Idx, Kind> {
pub start: Idx,
pub end: Idx,
pub _marker: PhantomData<Kind>,
}Fields§
§start: Idx§end: Idx§_marker: PhantomData<Kind>Implementations§
Trait Implementations§
Source§impl<'de, Idx, Kind> Deserialize<'de> for Range<Idx, Kind>where
Idx: Deserialize<'de>,
impl<'de, Idx, Kind> Deserialize<'de> for Range<Idx, Kind>where
Idx: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Idx: Ord, Kind: Ord> Ord for Range<Idx, Kind>
impl<Idx: Ord, Kind: Ord> Ord for Range<Idx, Kind>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Idx: PartialOrd, Kind: PartialOrd> PartialOrd for Range<Idx, Kind>
impl<Idx: PartialOrd, Kind: PartialOrd> PartialOrd for Range<Idx, Kind>
impl<T: Copy, Kind: Copy> Copy for Range<T, Kind>
impl<Idx: Eq, Kind: Eq> Eq for Range<Idx, Kind>
impl<Idx, Kind> StructuralPartialEq for Range<Idx, Kind>
Auto Trait Implementations§
impl<Idx, Kind> Freeze for Range<Idx, Kind>where
Idx: Freeze,
impl<Idx, Kind> RefUnwindSafe for Range<Idx, Kind>where
Idx: RefUnwindSafe,
Kind: RefUnwindSafe,
impl<Idx, Kind> Send for Range<Idx, Kind>
impl<Idx, Kind> Sync for Range<Idx, Kind>
impl<Idx, Kind> Unpin for Range<Idx, Kind>
impl<Idx, Kind> UnsafeUnpin for Range<Idx, Kind>where
Idx: UnsafeUnpin,
impl<Idx, Kind> UnwindSafe for Range<Idx, Kind>where
Idx: UnwindSafe,
Kind: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.