Enum netcdf::Extents

source ·
pub enum Extents {
    All,
    Extent(Vec<Extent>),
}
Expand description

A selector for putting and getting data along a dataset

This type can be constructed in many ways

use netcdf::{Extent, Extents};
// Get all values
let _: Extents = (..).into();
// Get array with only first 10 of the first dimension
// and the first 2 of the second dimension
let _: Extents = [..10, ..2].into();
// Get values after some index
let _: Extents = [1.., 2..].into();
// The above syntax (using arrays) does not allow arbitrary dimensions,
// for this use tuples
let _: Extents = (
    1..10,
    (2..=100).step_by(3),
    4,
).try_into().unwrap();
// Or specify counts using slices of `Extent`
let _: Extents = [
    Extent::SliceCount { start: 0, count: 10, stride: 1 },
    (5..).into(),
].into();
// Use two arrays to specify start and count
let _: Extents = (&[1, 2, 3], &[3, 2, 1]).try_into().unwrap();
// Use three arrays to specify start, count and stride
let _: Extents = (&[1, 2, 3], &[3, 2, 1], &[4, 5, 6]).try_into().unwrap();
// The `ndarray::s!` macro can also be used if `ndarray` feature is activated

Variants§

§

All

The full variable

§

Extent(Vec<Extent>)

A selection along each dimension

Trait Implementations§

source§

impl Clone for Extents

source§

fn clone(&self) -> Extents

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Extents

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Extents

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<&[Extent]> for Extents

source§

fn from(slice: &[Extent]) -> Self

Converts to this type from the input type.
source§

impl From<&[Range<usize>]> for Extents

source§

fn from(slice: &[Range<usize>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[Range<usize>; N]> for Extents

source§

fn from(slice: &[Range<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[RangeFrom<usize>]> for Extents

source§

fn from(slice: &[RangeFrom<usize>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[RangeFrom<usize>; N]> for Extents

source§

fn from(slice: &[RangeFrom<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[RangeFull]> for Extents

source§

fn from(slice: &[RangeFull]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[RangeFull; N]> for Extents

source§

fn from(slice: &[RangeFull; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[RangeInclusive<usize>]> for Extents

source§

fn from(slice: &[RangeInclusive<usize>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[RangeInclusive<usize>; N]> for Extents

source§

fn from(slice: &[RangeInclusive<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[RangeTo<usize>]> for Extents

source§

fn from(slice: &[RangeTo<usize>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[RangeTo<usize>; N]> for Extents

source§

fn from(slice: &[RangeTo<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[RangeToInclusive<usize>]> for Extents

source§

fn from(slice: &[RangeToInclusive<usize>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[RangeToInclusive<usize>; N]> for Extents

source§

fn from(slice: &[RangeToInclusive<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[StepBy<Range<usize>>]> for Extents

source§

fn from(slice: &[StepBy<Range<usize>>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[StepBy<Range<usize>>; N]> for Extents

source§

fn from(slice: &[StepBy<Range<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[StepBy<RangeFrom<usize>>]> for Extents

source§

fn from(slice: &[StepBy<RangeFrom<usize>>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[StepBy<RangeFrom<usize>>; N]> for Extents

source§

fn from(slice: &[StepBy<RangeFrom<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[StepBy<RangeInclusive<usize>>]> for Extents

source§

fn from(slice: &[StepBy<RangeInclusive<usize>>]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[StepBy<RangeInclusive<usize>>; N]> for Extents

source§

fn from(slice: &[StepBy<RangeInclusive<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl From<&[usize]> for Extents

source§

fn from(slice: &[usize]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<&[usize; N]> for Extents

source§

fn from(slice: &[usize; N]) -> Self

Converts to this type from the input type.
source§

impl From<&Extents> for Extents

source§

fn from(extents: &Self) -> Self

Converts to this type from the input type.
source§

impl From<&Range<usize>> for Extents

source§

fn from(item: &Range<usize>) -> Self

Converts to this type from the input type.
source§

impl From<&RangeFrom<usize>> for Extents

source§

fn from(item: &RangeFrom<usize>) -> Self

Converts to this type from the input type.
source§

impl From<&RangeInclusive<usize>> for Extents

source§

fn from(item: &RangeInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<&RangeTo<usize>> for Extents

source§

fn from(item: &RangeTo<usize>) -> Self

Converts to this type from the input type.
source§

impl From<&RangeToInclusive<usize>> for Extents

source§

fn from(item: &RangeToInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<&StepBy<Range<usize>>> for Extents

source§

fn from(item: &StepBy<Range<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<&StepBy<RangeFrom<usize>>> for Extents

source§

fn from(item: &StepBy<RangeFrom<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<&StepBy<RangeInclusive<usize>>> for Extents

source§

fn from(item: &StepBy<RangeInclusive<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<&usize> for Extents

source§

fn from(item: &usize) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[Extent; N]> for Extents

source§

fn from(slice: [Extent; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[Range<usize>; N]> for Extents

source§

fn from(slice: [Range<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[RangeFrom<usize>; N]> for Extents

source§

fn from(slice: [RangeFrom<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[RangeFull; N]> for Extents

source§

fn from(slice: [RangeFull; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[RangeInclusive<usize>; N]> for Extents

source§

fn from(slice: [RangeInclusive<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[RangeTo<usize>; N]> for Extents

source§

fn from(slice: [RangeTo<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[RangeToInclusive<usize>; N]> for Extents

source§

fn from(slice: [RangeToInclusive<usize>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[StepBy<Range<usize>>; N]> for Extents

source§

fn from(slice: [StepBy<Range<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[StepBy<RangeFrom<usize>>; N]> for Extents

source§

fn from(slice: [StepBy<RangeFrom<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[StepBy<RangeInclusive<usize>>; N]> for Extents

source§

fn from(slice: [StepBy<RangeInclusive<usize>>; N]) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[usize; N]> for Extents

source§

fn from(slice: [usize; N]) -> Self

Converts to this type from the input type.
source§

impl From<()> for Extents

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl From<Range<usize>> for Extents

source§

fn from(item: Range<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFrom<usize>> for Extents

source§

fn from(item: RangeFrom<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFull> for Extents

source§

fn from(_: RangeFull) -> Self

Converts to this type from the input type.
source§

impl From<RangeInclusive<usize>> for Extents

source§

fn from(item: RangeInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeTo<usize>> for Extents

source§

fn from(item: RangeTo<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeToInclusive<usize>> for Extents

source§

fn from(item: RangeToInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<StepBy<Range<usize>>> for Extents

source§

fn from(item: StepBy<Range<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<StepBy<RangeFrom<usize>>> for Extents

source§

fn from(item: StepBy<RangeFrom<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<StepBy<RangeInclusive<usize>>> for Extents

source§

fn from(item: StepBy<RangeInclusive<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Extent>> for Extents

source§

fn from(slice: Vec<Extent>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Range<usize>>> for Extents

source§

fn from(slice: Vec<Range<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<RangeFrom<usize>>> for Extents

source§

fn from(slice: Vec<RangeFrom<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<RangeFull>> for Extents

source§

fn from(slice: Vec<RangeFull>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<RangeInclusive<usize>>> for Extents

source§

fn from(slice: Vec<RangeInclusive<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<RangeTo<usize>>> for Extents

source§

fn from(slice: Vec<RangeTo<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<RangeToInclusive<usize>>> for Extents

source§

fn from(slice: Vec<RangeToInclusive<usize>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<StepBy<Range<usize>>>> for Extents

source§

fn from(slice: Vec<StepBy<Range<usize>>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<StepBy<RangeFrom<usize>>>> for Extents

source§

fn from(slice: Vec<StepBy<RangeFrom<usize>>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<StepBy<RangeInclusive<usize>>>> for Extents

source§

fn from(slice: Vec<StepBy<RangeInclusive<usize>>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<usize>> for Extents

source§

fn from(slice: Vec<usize>) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Extents

source§

fn from(item: usize) -> Self

Converts to this type from the input type.
source§

impl<T, Din: Dimension, Dout: Dimension> TryFrom<&SliceInfo<T, Din, Dout>> for Extents
where T: AsRef<[SliceInfoElem]>,

Available on crate feature ndarray only.
§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: &SliceInfo<T, Din, Dout>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize], &[usize])> for Extents

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from((start, count): (&[usize], &[usize])) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize], &[usize], &[isize])> for Extents

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize], &[usize], &[isize]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 0], &[usize; 0])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 0], &[usize; 0]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 0], &[usize; 0], &[isize; 0])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 0], &[usize; 0], &[isize; 0]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 1], &[usize; 1])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 1], &[usize; 1]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 1], &[usize; 1], &[isize; 1])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 1], &[usize; 1], &[isize; 1]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 2], &[usize; 2])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 2], &[usize; 2]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 2], &[usize; 2], &[isize; 2])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 2], &[usize; 2], &[isize; 2]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 3], &[usize; 3])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 3], &[usize; 3]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 3], &[usize; 3], &[isize; 3])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 3], &[usize; 3], &[isize; 3]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 4], &[usize; 4])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 4], &[usize; 4]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 4], &[usize; 4], &[isize; 4])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 4], &[usize; 4], &[isize; 4]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 5], &[usize; 5])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 5], &[usize; 5]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 5], &[usize; 5], &[isize; 5])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 5], &[usize; 5], &[isize; 5]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 6], &[usize; 6])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 6], &[usize; 6]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 6], &[usize; 6], &[isize; 6])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 6], &[usize; 6], &[isize; 6]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 7], &[usize; 7])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 7], &[usize; 7]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 7], &[usize; 7], &[isize; 7])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 7], &[usize; 7], &[isize; 7]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 8], &[usize; 8])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 8], &[usize; 8]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 8], &[usize; 8], &[isize; 8])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 8], &[usize; 8], &[isize; 8]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 9], &[usize; 9])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (&[usize; 9], &[usize; 9]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(&[usize; 9], &[usize; 9], &[isize; 9])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (&[usize; 9], &[usize; 9], &[isize; 9]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 0], [usize; 0])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 0], [usize; 0]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 0], [usize; 0], [isize; 0])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 0], [usize; 0], [isize; 0]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 1], [usize; 1])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 1], [usize; 1]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 1], [usize; 1], [isize; 1])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 1], [usize; 1], [isize; 1]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 2], [usize; 2])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 2], [usize; 2]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 2], [usize; 2], [isize; 2])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 2], [usize; 2], [isize; 2]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 3], [usize; 3])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 3], [usize; 3]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 3], [usize; 3], [isize; 3])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 3], [usize; 3], [isize; 3]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 4], [usize; 4])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 4], [usize; 4]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 4], [usize; 4], [isize; 4])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 4], [usize; 4], [isize; 4]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 5], [usize; 5])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 5], [usize; 5]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 5], [usize; 5], [isize; 5])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 5], [usize; 5], [isize; 5]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 6], [usize; 6])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 6], [usize; 6]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 6], [usize; 6], [isize; 6])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 6], [usize; 6], [isize; 6]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 7], [usize; 7])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 7], [usize; 7]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 7], [usize; 7], [isize; 7])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 7], [usize; 7], [isize; 7]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 8], [usize; 8])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 8], [usize; 8]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 8], [usize; 8], [isize; 8])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 8], [usize; 8], [isize; 8]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 9], [usize; 9])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): ([usize; 9], [usize; 9]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<([usize; 9], [usize; 9], [isize; 9])> for Extents

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): ([usize; 9], [usize; 9], [isize; 9]) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Extents
where T0: TryInto<Extent>, T0::Error: Into<Error>, T1: TryInto<Extent>, T1::Error: Into<Error>, T2: TryInto<Extent>, T2::Error: Into<Error>, T3: TryInto<Extent>, T3::Error: Into<Error>, T4: TryInto<Extent>, T4::Error: Into<Error>, T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( slice: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<(T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Extents
where T1: TryInto<Extent>, T1::Error: Into<Error>, T2: TryInto<Extent>, T2::Error: Into<Error>, T3: TryInto<Extent>, T3::Error: Into<Error>, T4: TryInto<Extent>, T4::Error: Into<Error>, T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( slice: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<(T2, T3, T4, T5, T6, T7, T8, T9)> for Extents
where T2: TryInto<Extent>, T2::Error: Into<Error>, T3: TryInto<Extent>, T3::Error: Into<Error>, T4: TryInto<Extent>, T4::Error: Into<Error>, T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( slice: (T2, T3, T4, T5, T6, T7, T8, T9) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T3, T4, T5, T6, T7, T8, T9> TryFrom<(T3, T4, T5, T6, T7, T8, T9)> for Extents
where T3: TryInto<Extent>, T3::Error: Into<Error>, T4: TryInto<Extent>, T4::Error: Into<Error>, T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T3, T4, T5, T6, T7, T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T4, T5, T6, T7, T8, T9> TryFrom<(T4, T5, T6, T7, T8, T9)> for Extents
where T4: TryInto<Extent>, T4::Error: Into<Error>, T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T4, T5, T6, T7, T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T5, T6, T7, T8, T9> TryFrom<(T5, T6, T7, T8, T9)> for Extents
where T5: TryInto<Extent>, T5::Error: Into<Error>, T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T5, T6, T7, T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T6, T7, T8, T9> TryFrom<(T6, T7, T8, T9)> for Extents
where T6: TryInto<Extent>, T6::Error: Into<Error>, T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T6, T7, T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T7, T8, T9> TryFrom<(T7, T8, T9)> for Extents
where T7: TryInto<Extent>, T7::Error: Into<Error>, T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T7, T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T8, T9> TryFrom<(T8, T9)> for Extents
where T8: TryInto<Extent>, T8::Error: Into<Error>, T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T8, T9)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T9> TryFrom<(T9,)> for Extents
where T9: TryInto<Extent>, T9::Error: Into<Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: (T9,)) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(Vec<usize>, Vec<usize>)> for Extents

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( (start, count): (Vec<usize>, Vec<usize>) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(Vec<usize>, Vec<usize>, Vec<isize>)> for Extents

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( (start, count, stride): (Vec<usize>, Vec<usize>, Vec<isize>) ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T, Din: Dimension, Dout: Dimension> TryFrom<SliceInfo<T, Din, Dout>> for Extents
where T: AsRef<[SliceInfoElem]>,

Available on crate feature ndarray only.
§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(slice: SliceInfo<T, Din, Dout>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.