Skip to main content

Crate spatialrust_core

Crate spatialrust_core 

Source
Expand description

Core data model, metadata, and algorithm traits for SpatialRust.

This crate intentionally stays lightweight: no IO, GPU, ROS2, or AI runtimes.

Structs§

AoSoAAttributeChunk
Owned interleaved positions and optional capability attributes for one chunk.
AoSoAAttributeLayout
Explicit interleaved field layout for an AoSoAAttributeChunk.
AoSoAXyzChunk
Interleaved XYZ layout for one SpatialTensorChunk (3 * point_count floats).
CpuDevice
Default CPU device.
CpuRuntime
Host runtime for single-threaded and parallel CPU algorithms.
ExecutionOutput
Output value paired with the receipt for its execution.
ExecutionReceipt
Account of one algorithm execution.
FrameId
Coordinate frame identifier.
PointBufferSet
Collection of column buffers keyed by field name.
PointCloud
Schema-aware columnar point cloud stored on a device.
PointCloudBuilder
Builds point clouds field-by-field.
PointField
One column in a point cloud schema.
PointSchema
Schema describing the columns of a point cloud.
SpatialMetadata
Spatial metadata attached to point clouds and maps.
SpatialTensor
Borrowed chunked view over a PointCloud.
SpatialTensorChunk
One contiguous index range within a SpatialTensor chunk iteration.
SpatialTensorFieldChunk
Borrowed slice of one column buffer within a chunk range.
StandardSchemas
Standard schemas used by typed views and IO adapters.
Timestamp
Timestamp in nanoseconds since an arbitrary epoch.
TransferStats
Byte accounting for explicit execution transfers.

Enums§

DType
Supported scalar dtypes for point fields.
DeviceKind
Device kind supported by SpatialRust execution.
ExecutionPolicy
Execution policy for spatial algorithms.
FieldSemantic
Semantic meaning of a point field.
PointBuffer
Typed column buffer for one point field.
SpatialError
Core error type for SpatialRust.
TransferDirection
Direction of an explicit data transfer between host and device memory.

Constants§

DEFAULT_SPATIAL_TENSOR_CHUNK_SIZE
Default chunk size for PointCloud::spatial_tensor_chunks.

Traits§

Device
Minimal device abstraction defined in core and extended by spatialrust-gpu.
HasIntensity
Capability trait for point clouds with intensity values.
HasNormals3
Capability trait for point clouds with surface normals.
HasPositions3
Capability trait for point clouds with 3D positions.
SpatialAlgorithm
Common trait implemented by spatial algorithms.
SpatialRuntime
Runtime boundary for executing spatial algorithms on one backend.

Type Aliases§

SpatialResult
Result type used across SpatialRust crates.