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 Distribution<bool> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<bool> for RangeFull
ferrocene_certified
only.Source§impl Distribution<i128> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<i128> for RangeFull
ferrocene_certified
only.Source§impl Distribution<i16> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<i16> for RangeFull
ferrocene_certified
only.Source§impl Distribution<i32> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<i32> for RangeFull
ferrocene_certified
only.Source§impl Distribution<i64> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<i64> for RangeFull
ferrocene_certified
only.Source§impl Distribution<i8> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<i8> for RangeFull
ferrocene_certified
only.Source§impl Distribution<isize> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<isize> for RangeFull
ferrocene_certified
only.Source§impl Distribution<u128> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<u128> for RangeFull
ferrocene_certified
only.Source§impl Distribution<u16> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<u16> for RangeFull
ferrocene_certified
only.Source§impl Distribution<u32> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<u32> for RangeFull
ferrocene_certified
only.Source§impl Distribution<u64> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<u64> for RangeFull
ferrocene_certified
only.Source§impl Distribution<u8> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<u8> for RangeFull
ferrocene_certified
only.Source§impl Distribution<usize> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl Distribution<usize> for RangeFull
ferrocene_certified
only.1.0.0 · Source§impl Hash for RangeFull
impl Hash for RangeFull
Source§impl<T> IntoBounds<T> for RangeFull
impl<T> IntoBounds<T> for RangeFull
1.28.0 · Source§impl<T: ?Sized> RangeBounds<T> for RangeFull
impl<T: ?Sized> RangeBounds<T> for RangeFull
1.15.0 (const: unstable) · Source§impl<T> SliceIndex<[T]> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl<T> SliceIndex<[T]> for RangeFull
ferrocene_certified
only.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
)Source§impl SliceIndex<ByteStr> for RangeFull
Available on non-crate feature ferrocene_certified
only.
impl SliceIndex<ByteStr> for RangeFull
ferrocene_certified
only.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.20.0 (const: unstable) · Source§impl SliceIndex<str> for RangeFull
Available on non-crate feature ferrocene_certified
only.Implements substring slicing with syntax &self[..]
or &mut self[..]
.
impl SliceIndex<str> for RangeFull
ferrocene_certified
only.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 Copy for RangeFull
impl Eq for RangeFull
impl StructuralPartialEq for RangeFull
Auto Trait Implementations§
impl Freeze for RangeFull
impl RefUnwindSafe for RangeFull
impl Send for RangeFull
impl Sync for RangeFull
impl Unpin 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
ferrocene_certified
only.