Struct ella_tensor::slice::Slice
source · pub struct Slice {
pub start: isize,
pub end: Option<isize>,
pub step: isize,
}Fields§
§start: isize§end: Option<isize>§step: isizeImplementations§
Trait Implementations§
source§impl From<RangeInclusive<i32>> for Slice
impl From<RangeInclusive<i32>> for Slice
source§fn from(value: RangeInclusive<i32>) -> Self
fn from(value: RangeInclusive<i32>) -> Self
Converts to this type from the input type.
source§impl From<RangeInclusive<isize>> for Slice
impl From<RangeInclusive<isize>> for Slice
source§fn from(value: RangeInclusive<isize>) -> Self
fn from(value: RangeInclusive<isize>) -> Self
Converts to this type from the input type.
source§impl From<RangeInclusive<usize>> for Slice
impl From<RangeInclusive<usize>> for Slice
source§fn from(value: RangeInclusive<usize>) -> Self
fn from(value: RangeInclusive<usize>) -> Self
Converts to this type from the input type.
source§impl From<RangeToInclusive<i32>> for Slice
impl From<RangeToInclusive<i32>> for Slice
source§fn from(value: RangeToInclusive<i32>) -> Self
fn from(value: RangeToInclusive<i32>) -> Self
Converts to this type from the input type.
source§impl From<RangeToInclusive<isize>> for Slice
impl From<RangeToInclusive<isize>> for Slice
source§fn from(value: RangeToInclusive<isize>) -> Self
fn from(value: RangeToInclusive<isize>) -> Self
Converts to this type from the input type.
source§impl From<RangeToInclusive<usize>> for Slice
impl From<RangeToInclusive<usize>> for Slice
source§fn from(value: RangeToInclusive<usize>) -> Self
fn from(value: RangeToInclusive<usize>) -> Self
Converts to this type from the input type.
source§impl PartialEq<Slice> for Slice
impl PartialEq<Slice> for Slice
impl Copy for Slice
impl Eq for Slice
impl StructuralEq for Slice
impl StructuralPartialEq for Slice
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.