Releases: yunjhongwu/strong-type
Releases · yunjhongwu/strong-type
v0.12.0
v0.11.2
- Fixed the visibility of
is_nan
andis_finite
for float underlying types.
v0.11.1
- Fixed the visibility of
NAN
v0.11.0
- Enabled
pub
underlying value access. Users can now strongly type structs, such asstruct Timestamp(pub i64)
, construct them withTimestamp(1234567890)
, and access the underlying value viatimestamp.0
.
v0.10.0
- Adding
const_new
for creating constant strong-typed values. - Adding
conversion
attribute to optionally implementFrom
/Into
underlying types.
v0.9.0
- Removing
custom_underlying
and providing#[strong_type(underlying=i32)]
for specifying the underlying primitive type for nested strong-types - Adding
INFINITY
andNEG_INFINITY
constants to strong-typed floats.
v0.8.0
What's Changed
- Supporting nested strong types , i.e. the underlying type can be a strong-typed primitive once
custom_underlying
is provided.
v0.7.0
- Implementing
Sum
andProduct
v0.6.0
MIN
,MAX
,ZERO
, andNAN
are added as associated constants of strong types where applicable.- Minor bug fixes.
v0.5.0
- All optional changes are specified as
#[string_type(auto_operators, custom_display)]
. auto_operators
implements bit operations for strongly-typed integers.- The constructor is updated to accept types that implement
Into
, now defined as::new(value: impl Into<UnderlyingType>)
.