Skip to content

Result<T, E> + return inlined NDT for built-in impls#454

Draft
oscartbeaumont wants to merge 32 commits intomainfrom
drop-function-result
Draft

Result<T, E> + return inlined NDT for built-in impls#454
oscartbeaumont wants to merge 32 commits intomainfrom
drop-function-result

Conversation

@oscartbeaumont
Copy link
Member

@oscartbeaumont oscartbeaumont commented Mar 3, 2026

Closes #415

Changes:

  • Add impl Type for Result<T, E> implementation
  • Regig FunctionResult trait and drop FunctionReturnType enum
  • Replace all built-in implementation on non-primitives to return an inline NDT (this is gonna be powerful in userspace)
  • impl Type for str to reduce needs for special combinations (and Serde supports it)
  • Rename Primtivies::String to Primitives::str to be more consistent now that we have an impl for it.
  • #[cfg(feature = "derive")] is no longer required for 3rd party crate features. This should should also save some compile time.

@oscartbeaumont oscartbeaumont changed the title Result<T, E> Result<T, E> + return inlined NDT for built-in impls Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Result<T, E> doesn't implement Type

1 participant