Login
You're viewing the techdon.dev public feed.
  • Jul 7, 2026, 4:01 AM

    @jhpratt it's been a long day so maybe I'm missing the obvious, but what would it actually mean for a trait item to not be pub?

    💬 1🔄 0⭐ 0

Replies

  • Jul 7, 2026, 4:03 AM

    @megmac It could neither be implemented nor called downstream. If a trait item without a default body (or type/const) were not visible in a given scope, you'd be unable to implement the trait as a result. Just as constructing a struct with private fields isn't permitted.

    💬 0🔄 0⭐ 0