- Add
TypeNameInfo
gated behind"info"
and"serde"
features. (#16)
- Add
tynm::type_name*_opts
methods, taking inTypeParamsFmtOpts
to specify how type parameters are formatted. (#15)
- Update
nom
to7.1.3
to account for rust#79813.
- Support creating
TypeName
fromdyn Trait
.
- Don't overflow when segment count exceeds
usize::MAX
. (#7) - Build
nom
without"lexical"
feature.
- Use
unimplemented!
macro instead oftodo!
to support Rust 1.38.0. (#5)
TypeName::new::<T>()
returns aTypeName
instance forT
without constructing the String. (#3)TypeName::as_display()
andTypeName::as_display_mn()
both return aTypeNameDisplay
, allowing one to pass around aDisplay
object. (#3)
tynm::type_name
returns the simple type name.tynm::type_namem
returns the type name with a chosen number of most significant module segments.tynm::type_namen
returns the type name with a chosen number of least significant module segments.tynm::type_namemn
returns the type name with a chosen number of most and least significant module segments.