rlmesh 0.1.0

Internal RLMesh crate (unstable Rust API): Rust bindings for model-environment evaluation; build on the rlmesh Python package.
Documentation
//! Curated re-exports of the [`rlmesh_spaces`] space-system types.
//!
//! This module deliberately avoids a blanket `pub use rlmesh_spaces::*` so the
//! facade surface stays curated and the two request families do not collide:
//!
//! - The crate-root [`crate::ResetRequest`] / [`crate::StepRequest`] (and their
//!   results) are the scalar env requests used by [`crate::Env`] and
//!   [`crate::RemoteEnv`].
//! - The vectorized env request family is exported under explicit
//!   `Vector*` names such as [`crate::VectorResetRequest`].
//!
//! Keeping the lower-level request family namespaced under `request` makes the
//! scalar facade the default without flattening every transport type.

// Namespaced submodules. The single-env request family is reached via
// `rlmesh::spaces::request::{ResetRequest, StepRequest, ResetResult, ...}`.
pub use rlmesh_spaces::{dtype, errors, meta, render, request, scalar, spaces, tensor, types};

pub use rlmesh_spaces::errors::{EnvRuntimeError, SpaceError};

// Curated flat re-exports. Note we intentionally do NOT flatten the request
// family here — use `request::*` for those — but `CloseRequest`,
// `RenderRequest`, and `RenderFrame`/`RenderResult` are shared and re-exported.
pub use rlmesh_spaces::dtype::{DType, dtype_size};
pub use rlmesh_spaces::meta::{MetaMap, MetaValue};
pub use rlmesh_spaces::render::{BinaryPayload, RenderFrame, RenderRequest, RenderResult};
pub use rlmesh_spaces::request::CloseRequest;
pub use rlmesh_spaces::scalar::{
    Scalar, ScalarError, decode_scalars, encode_i64_scalars, encode_scalars,
};
pub use rlmesh_spaces::spaces::{Conformance, SpaceValue, conform, contains, validate_space};
pub use rlmesh_spaces::tensor::{
    DLPackType, Device, Storage, Tensor, TensorError, contiguous_strides, dlpack_type,
    dtype_from_dlpack,
};
pub use rlmesh_spaces::types::{
    BoxBounds, BoxSpec, DictSpec, DiscreteSpec, ElementwiseBounds, EnvContract, MultiBinarySpec,
    MultiDiscreteSpec, SpaceKind, SpaceSpec, SpaceType, TextSpec, TupleSpec,
    TypedElementwiseBounds, TypedUniformBounds, UniformBounds,
};