pub struct TypedRange<T> {
pub start: Bound<T>,
pub end: Bound<T>,
}Expand description
A range of a specific type, can be converted back into a general range and coerced from a general range.
Fields§
§start: Bound<T>§end: Bound<T>Implementations§
Source§impl<T> TypedRange<T>where
T: Clone,
impl<T> TypedRange<T>where
T: Clone,
pub fn from_range<R>(r: R) -> TypedRange<T>where
R: RangeBounds<T>,
Trait Implementations§
Source§impl<T> Clone for TypedRange<T>where
T: Clone,
impl<T> Clone for TypedRange<T>where
T: Clone,
Source§fn clone(&self) -> TypedRange<T>
fn clone(&self) -> TypedRange<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for TypedRange<T>where
T: Debug,
impl<T> Debug for TypedRange<T>where
T: Debug,
impl<T> Eq for TypedRange<T>where
T: Eq,
Source§impl<T> From<TypedRange<T>> for Range
impl<T> From<TypedRange<T>> for Range
Source§fn from(value: TypedRange<T>) -> Self
fn from(value: TypedRange<T>) -> Self
Converts to this type from the input type.
Source§impl<T> Hash for TypedRange<T>where
T: Hash,
impl<T> Hash for TypedRange<T>where
T: Hash,
Source§impl IntegerRangeExt for TypedRange<i64>
impl IntegerRangeExt for TypedRange<i64>
fn cast_to_array(self) -> Array
Source§impl<T> PartialEq for TypedRange<T>where
T: PartialEq,
impl<T> PartialEq for TypedRange<T>where
T: PartialEq,
Source§impl<T> PartialOrd for TypedRange<T>where
T: PartialOrd,
impl<T> PartialOrd for TypedRange<T>where
T: PartialOrd,
impl<T> StructuralPartialEq for TypedRange<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for TypedRange<T>
impl<T> RefUnwindSafe for TypedRange<T>where
Bound<T>: RefUnwindSafe,
impl<T> Send for TypedRange<T>
impl<T> Sync for TypedRange<T>
impl<T> Unpin for TypedRange<T>
impl<T> UnsafeUnpin for TypedRange<T>where
Bound<T>: UnsafeUnpin,
impl<T> UnwindSafe for TypedRange<T>where
Bound<T>: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.