devnagari 0.1.0

Code in Devanagari (Hindi/Sanskrit) — type aliases, macros, and keyword translation for Rust
Documentation
// ── Primitive integer types ──────────────────────────────────────────────────

/// 8-bit signed integer  (`i8`)
pub type लघुपूर्णांक = i8;
/// 16-bit signed integer (`i16`)
pub type मध्यपूर्णांक = i16;
/// 32-bit signed integer (`i32`) — default integer
pub type पूर्णांक = i32;
/// 64-bit signed integer (`i64`)
pub type दीर्घपूर्णांक = i64;
/// 128-bit signed integer (`i128`)
pub type महापूर्णांक = i128;
/// Platform pointer-sized signed integer (`isize`)
pub type सूचकांक = isize;

// ── Primitive unsigned integer types ─────────────────────────────────────────

/// 8-bit unsigned integer (`u8`)
pub type अष्टांक = u8;
/// 16-bit unsigned integer (`u16`)
pub type षोडशांक = u16;
/// 32-bit unsigned integer (`u32`)
pub type अचिह्नित = u32;
/// 64-bit unsigned integer (`u64`)
pub type दीर्घाचिह्नित = u64;
/// 128-bit unsigned integer (`u128`)
pub type महाचिह्नित = u128;
/// Platform pointer-sized unsigned integer (`usize`)
pub type आकार = usize;

// ── Floating-point types ──────────────────────────────────────────────────────

/// 32-bit floating-point (`f32`)
pub type लघुदशमलव = f32;
/// 64-bit floating-point (`f64`) — default float
pub type दशमलव = f64;

// ── Text types ────────────────────────────────────────────────────────────────

/// Owned UTF-8 string (`String`)
pub type पाठ = String;

// ── Boolean ───────────────────────────────────────────────────────────────────

/// Boolean type (`bool`)
pub type बूलियन = bool;

// ── Character ─────────────────────────────────────────────────────────────────

/// Unicode scalar value (`char`)
pub type अक्षर = char;

/// Byte — alias for `u8` (common in I/O)
pub type बाइट = u8;

// ── Unit ──────────────────────────────────────────────────────────────────────

/// Unit type — represents "no value" (`()`)
pub type शून्य = ();

// ── Collections ───────────────────────────────────────────────────────────────

/// Growable list (`Vec<T>`)
pub type सूची<T> = Vec<T>;

/// Key-value dictionary (`std::collections::HashMap<K, V>`)
pub type को<K, V> = std::collections::HashMap<K, V>;

/// Ordered key-value map (`std::collections::BTreeMap<K, V>`)
pub type क्रमको<K, V> = std::collections::BTreeMap<K, V>;

/// Unique unordered set (`std::collections::HashSet<T>`)
pub type समुच्चय<T> = std::collections::HashSet<T>;

/// Ordered unique set (`std::collections::BTreeSet<T>`)
pub type क्रमसमुच्चय<T> = std::collections::BTreeSet<T>;

/// Double-ended queue (`std::collections::VecDeque<T>`)
pub type द्विसिरासूची<T> = std::collections::VecDeque<T>;

// ── Smart pointers ────────────────────────────────────────────────────────────

/// Heap-allocated owned value (`Box<T>`)
pub type पिटारा<T> = Box<T>;

/// Thread-safe reference-counted pointer (`std::sync::Arc<T>`)
pub type साझा<T> = std::sync::Arc<T>;

/// Single-threaded reference-counted pointer (`std::rc::Rc<T>`)
pub type आरसी<T> = std::rc::Rc<T>;

/// Mutable memory location (`std::cell::Cell<T>`)
pub type कोशिका<T> = std::cell::Cell<T>;

/// Mutable memory location with runtime borrow checking (`std::cell::RefCell<T>`)
pub type परिवर्तकोशिका<T> = std::cell::RefCell<T>;

// ── Error / Option ────────────────────────────────────────────────────────────

/// Optional value (`Option<T>`)
pub type विकल्<T> = Option<T>;

/// Result that is either success or error (`Result<T, E>`)
pub type फल<T, E> = Result<T, E>;

// ── Concurrency ───────────────────────────────────────────────────────────────

/// Mutual exclusion primitive (`std::sync::Mutex<T>`)
pub type ताला<T> = std::sync::Mutex<T>;

/// Reader-writer lock (`std::sync::RwLock<T>`)
pub type पाठताला<T> = std::sync::RwLock<T>;