#maybe #plans #future #blocker #hold #required #ux3

yanked ux3-macros

Blocker for maybe future plans

1 unstable release

0.1.0 Feb 4, 2024

#6 in #blocker

MIT license

2KB

uX3: A better uX/ux2

Crates.io docs

Please note that this readme is inherited from ux2, and may be largely incorrect. My main point for creating ux3 is, because ux2 is cumbersome to use at times and that their types can theoretically hold more memory than is required. ux3's types only use as much space as nessesary (a ux only (theoretically) uses x bits of storage. e.g. Option<u7> should only occupy 1 byte). This is achieved by utilizing enums for u1 to u7 and i1 to i7.

Non-standard integer types like u7, u9, u10, u63, i7, i9 etc.

Traits that should be implemented

Comparisons (std::cmp)

  • PartialOrd<Self>
  • Ord
  • PartialEq<Self>
  • Eq

Other

  • std::hash::Hash
  • std::default::Default

Format (std::fmt)

  • Binary
  • Debug
  • LowerHex
  • UpperHex
  • Display
  • Octal

Conversion (std::convert)

  • TryFrom<T>
  • From<T>
  • FromStr

Operations (std::ops)

  • Add<Self>
  • Add<&Self>
  • Add<Self> for &Self
  • Add<&Self>for &Self
  • AddAssign<Self>
  • AddAssign<&Self>
  • BitAnd<Self>
  • BitAnd<&Self>
  • BitAnd<Self> for &Self
  • BitAnd<&Self> for &Self
  • BitAndAssign<Self>
  • BitAndAssign<&Self>
  • BitOr<Self>
  • BitOr<&Self>
  • BitOr<Self> for &Self
  • BitOr<&Self> for &Self
  • BitOrAssign<Self>
  • BitOrAssign<&Self>
  • BitXor<Self>
  • BitXor<&Self>
  • BitXor<Self> for &Self
  • BitXor<&Self> for &Self
  • BitXorAssign<Self>
  • BitXorAssign<&Self>
  • Div<Self>
  • Div<&Self>
  • Div<Self> for &Self
  • Div<&Self> for &Self
  • DivAssign<Self>
  • DivAssign<&Self>
  • Sum<Self>
  • Sum<&Self>
  • Mul<Self>
  • Mul<&Self>
  • Mul<Self> for &Self
  • Mul<&Self> for &Self
  • MulAssign<Self>
  • MulAssign<&Self>
  • Not
  • Not for &Self
  • Product<Self>
  • Product<&Self>
  • Rem<Self>
  • Rem<&Self>
  • Rem<Self> for &Self
  • Rem<&Self> for &Self
  • RemAssign<Self>
  • RemAssign<&Self>
  • Shl<T> (for all possible numeric T and &T)
  • Shl<&T> (for all possible numeric T and &T)
  • Shr<T> (for all possible numeric T and &T)
  • Shr<&T> (for all possible numeric Tand &T)
  • ShlAssign<T> (for all possible numeric Tand &T)
  • ShlAssign<&T> (for all possible numeric Tand &T)
  • ShrAssign<T> (for all possible numeric Tand &T)
  • ShrAssign<&T> (for all possible numeric Tand &T)
  • Sub<Self>
  • Sub<&Self>
  • Sub<Self> for &Self
  • Sub<&Self> for &Self
  • SubAssign<Self>
  • SubAssign<&Self>

No runtime deps