Skip to content

Write README.md for crates/mohu-dtype #52

Description

@Bbn08

Summary

crates/mohu-dtype has no README.md. This crate defines the DType enum used by every other mohu crate and deserves clear standalone documentation.

What to do

Create crates/mohu-dtype/README.md covering:

  • One-paragraph description.
  • The full dtype table (variant, Rust type, bytes, alignment) -- already in dtype.rs as a doc comment, copy it here.
  • A code example showing DType::from_str, itemsize, is_float, promote, and can_cast.
  • A section on the Scalar trait and which Rust types implement it.
  • A section on DLPack dtype code mapping.
  • Link to workspace CONTRIBUTING.md.

Acceptance criteria

  • crates/mohu-dtype/README.md exists.
  • Code examples compile.
  • Dtype table is accurate and matches DType::itemsize() values.

Signed-off-by: Bbn08 atrancendentbeing@gmail.com

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions