1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
//! Core mesh components for the hyperactor framework.
//!
//! Provides [`Slice`], a compact representation of a subset of a
//! multidimensional array. See [`Slice`] for more details.
//!
//! This crate defines the foundational abstractions used in
//! hyperactor's mesh layer, including multidimensional shapes and
//! selection algebra. The crate avoids dependencies on procedural
//! macros and other higher-level constructs, enabling reuse in both
//! runtime and macro contexts.
pub use DimSliceIterator;
pub use Slice;
pub use SliceError;
pub use SliceIterator;
/// Selection algebra for describing multidimensional mesh regions.
/// Core types for representing multidimensional shapes and strides.
/// Reshaping transformations for multidimensional slices and shapes.
/// The selection expression type used to define routing constraints.
pub use Selection;
/// DSL-style constructors for building `Selection` expressions.
pub use dsl;
/// Represents an interval with an optional end and step, used to
/// define extents in `Shape` and coordinate filters in `Selection`.
pub use Range;
/// Describes the size and layout of a multidimensional mesh.
pub use Shape;
/// Errors that can occur during shape construction or validation.
pub use ShapeError;
/// Property-based generators for randomized test input.