Struct Slice
pub struct Slice { /* private fields */ }
Expand description
A slice (range).
end
is an exclusive index.- Negative
start
orend
indices are counted from the back of the axis. - If
end
isNone
, the slice extends to the end of the axis.
See also the s![]
macro.
Implementations§
Trait Implementations§
§impl<I> From<Range<I>> for Slicewhere
I: IndexConversion,
impl<I> From<Range<I>> for Slicewhere
I: IndexConversion,
§impl<I> From<RangeFrom<I>> for Slicewhere
I: IndexConversion,
impl<I> From<RangeFrom<I>> for Slicewhere
I: IndexConversion,
§impl<I> From<RangeInclusive<I>> for Slicewhere
I: IndexConversion + Copy,
impl<I> From<RangeInclusive<I>> for Slicewhere
I: IndexConversion + Copy,
§fn from(r: RangeInclusive<I>) -> Slice
fn from(r: RangeInclusive<I>) -> Slice
Converts to this type from the input type.
§impl<I> From<RangeTo<I>> for Slicewhere
I: IndexConversion,
impl<I> From<RangeTo<I>> for Slicewhere
I: IndexConversion,
§impl<I> From<RangeToInclusive<I>> for Slicewhere
I: IndexConversion,
impl<I> From<RangeToInclusive<I>> for Slicewhere
I: IndexConversion,
§fn from(r: RangeToInclusive<I>) -> Slice
fn from(r: RangeToInclusive<I>) -> Slice
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnwindSafe for Slice
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more