pub struct RangeFull;Expand description
An unbounded range (..).
RangeFull is primarily used as a slicing index, its shorthand is ...
It cannot serve as an Iterator because it doesn’t have a starting point.
§Examples
The .. syntax is a RangeFull:
It does not have an IntoIterator implementation, so you can’t use it in
a for loop directly. This won’t compile:
Used as a slicing index, RangeFull produces the full array as a slice.
Trait Implementations§
Source§impl<T> ClampBounds<T> for RangeFull
impl<T> ClampBounds<T> for RangeFull
Source§fn clamp(self, value: T) -> T
fn clamp(self, value: T) -> T
clamp_bounds #147781)Ord::clamp_to.impl Copy for RangeFull
Source§impl Distribution<bool> for RangeFull
impl Distribution<bool> for RangeFull
Source§impl Distribution<i8> for RangeFull
impl Distribution<i8> for RangeFull
Source§impl Distribution<i16> for RangeFull
impl Distribution<i16> for RangeFull
Source§impl Distribution<i32> for RangeFull
impl Distribution<i32> for RangeFull
Source§impl Distribution<i64> for RangeFull
impl Distribution<i64> for RangeFull
Source§impl Distribution<i128> for RangeFull
impl Distribution<i128> for RangeFull
Source§impl Distribution<isize> for RangeFull
impl Distribution<isize> for RangeFull
Source§impl Distribution<u8> for RangeFull
impl Distribution<u8> for RangeFull
Source§impl Distribution<u16> for RangeFull
impl Distribution<u16> for RangeFull
Source§impl Distribution<u32> for RangeFull
impl Distribution<u32> for RangeFull
Source§impl Distribution<u64> for RangeFull
impl Distribution<u64> for RangeFull
Source§impl Distribution<u128> for RangeFull
impl Distribution<u128> for RangeFull
Source§impl Distribution<usize> for RangeFull
impl Distribution<usize> for RangeFull
1.0.0 (const: unstable) · Source§impl Eq for RangeFull
impl Eq for RangeFull
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)Source§impl<T> IntoBounds<T> for RangeFull
impl<T> IntoBounds<T> for RangeFull
1.28.0 (const: unstable) · Source§impl<T: ?Sized> RangeBounds<T> for RangeFull
impl<T: ?Sized> RangeBounds<T> for RangeFull
Source§impl RangeIntersect for RangeFull
impl RangeIntersect for RangeFull
Source§type Intersection = RangeFull
type Intersection = RangeFull
range_intersect #165428)Source§impl<T> RangeIntersect<Range<T>> for RangeFull
impl<T> RangeIntersect<Range<T>> for RangeFull
Source§type Intersection = Range<T>
type Intersection = Range<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFrom<T>> for RangeFull
impl<T> RangeIntersect<RangeFrom<T>> for RangeFull
Source§type Intersection = RangeFrom<T>
type Intersection = RangeFrom<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFull> for Range<T>
impl<T> RangeIntersect<RangeFull> for Range<T>
Source§type Intersection = Range<T>
type Intersection = Range<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFull> for RangeFrom<T>
impl<T> RangeIntersect<RangeFull> for RangeFrom<T>
Source§type Intersection = RangeFrom<T>
type Intersection = RangeFrom<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFull> for RangeTo<T>
impl<T> RangeIntersect<RangeFull> for RangeTo<T>
Source§type Intersection = RangeTo<T>
type Intersection = RangeTo<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFull> for RangeInclusive<T>
impl<T> RangeIntersect<RangeFull> for RangeInclusive<T>
Source§type Intersection = RangeInclusive<T>
type Intersection = RangeInclusive<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeFull> for RangeToInclusive<T>
impl<T> RangeIntersect<RangeFull> for RangeToInclusive<T>
Source§type Intersection = RangeToInclusive<T>
type Intersection = RangeToInclusive<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeInclusive<T>> for RangeFull
impl<T> RangeIntersect<RangeInclusive<T>> for RangeFull
Source§type Intersection = RangeInclusive<T>
type Intersection = RangeInclusive<T>
range_intersect #165428)Source§fn intersect(self, rhs: RangeInclusive<T>) -> Self::Intersection
fn intersect(self, rhs: RangeInclusive<T>) -> Self::Intersection
range_intersect #165428)self and rhs.Source§impl<T> RangeIntersect<RangeTo<T>> for RangeFull
impl<T> RangeIntersect<RangeTo<T>> for RangeFull
Source§type Intersection = RangeTo<T>
type Intersection = RangeTo<T>
range_intersect #165428)Source§impl<T> RangeIntersect<RangeToInclusive<T>> for RangeFull
impl<T> RangeIntersect<RangeToInclusive<T>> for RangeFull
Source§type Intersection = RangeToInclusive<T>
type Intersection = RangeToInclusive<T>
range_intersect #165428)Source§fn intersect(self, rhs: RangeToInclusive<T>) -> Self::Intersection
fn intersect(self, rhs: RangeToInclusive<T>) -> Self::Intersection
range_intersect #165428)self and rhs.Source§impl SliceIndex<ByteStr> for RangeFull
impl SliceIndex<ByteStr> for RangeFull
Source§fn get(self, slice: &ByteStr) -> Option<&Self::Output>
fn get(self, slice: &ByteStr) -> Option<&Self::Output>
slice_index_methods)Source§fn get_mut(self, slice: &mut ByteStr) -> Option<&mut Self::Output>
fn get_mut(self, slice: &mut ByteStr) -> Option<&mut Self::Output>
slice_index_methods)Source§unsafe fn get_unchecked(self, slice: *const ByteStr) -> *const Self::Output
unsafe fn get_unchecked(self, slice: *const ByteStr) -> *const Self::Output
slice_index_methods)Source§unsafe fn get_unchecked_mut(self, slice: *mut ByteStr) -> *mut Self::Output
unsafe fn get_unchecked_mut(self, slice: *mut ByteStr) -> *mut Self::Output
slice_index_methods)1.15.0 (const: unstable) · Source§impl<T> SliceIndex<[T]> for RangeFull
impl<T> SliceIndex<[T]> for RangeFull
Source§fn get(self, slice: &[T]) -> Option<&[T]>
fn get(self, slice: &[T]) -> Option<&[T]>
slice_index_methods)Source§fn get_mut(self, slice: &mut [T]) -> Option<&mut [T]>
fn get_mut(self, slice: &mut [T]) -> Option<&mut [T]>
slice_index_methods)Source§unsafe fn get_unchecked(self, slice: *const [T]) -> *const [T]
unsafe fn get_unchecked(self, slice: *const [T]) -> *const [T]
slice_index_methods)Source§unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut [T]
unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut [T]
slice_index_methods)1.20.0 (const: unstable) · Source§impl SliceIndex<str> for RangeFull
Implements substring slicing with syntax &self[..] or &mut self[..].
impl SliceIndex<str> for RangeFull
Implements substring slicing with syntax &self[..] or &mut self[..].
Returns a slice of the whole string, i.e., returns &self or &mut self. Equivalent to &self[0 .. len] or &mut self[0 .. len]. Unlike
other indexing operations, this can never panic.
This operation is O(1).
Prior to 1.20.0, these indexing operations were still supported by
direct implementation of Index and IndexMut.
Equivalent to &self[0 .. len] or &mut self[0 .. len].
Source§fn get(self, slice: &str) -> Option<&Self::Output>
fn get(self, slice: &str) -> Option<&Self::Output>
slice_index_methods)Source§fn get_mut(self, slice: &mut str) -> Option<&mut Self::Output>
fn get_mut(self, slice: &mut str) -> Option<&mut Self::Output>
slice_index_methods)Source§unsafe fn get_unchecked(self, slice: *const str) -> *const Self::Output
unsafe fn get_unchecked(self, slice: *const str) -> *const Self::Output
slice_index_methods)Source§unsafe fn get_unchecked_mut(self, slice: *mut str) -> *mut Self::Output
unsafe fn get_unchecked_mut(self, slice: *mut str) -> *mut Self::Output
slice_index_methods)impl StructuralPartialEq for RangeFull
impl TrivialClone for RangeFull
Auto Trait Implementations§
impl Forget for RangeFull
impl Freeze for RangeFull
impl Move for RangeFull
impl RefUnwindSafe for RangeFull
impl Send for RangeFull
impl Sync for RangeFull
impl Unpin for RangeFull
impl UnsafeUnpin for RangeFull
impl UnwindSafe for RangeFull
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read more