pub trait Segment: Id + Render { }Expand description
How one Id member becomes one path segment.
Its supertrait is the sealed vocabulary and its own name is unreachable from outside this crate,
so the set of renderable ids is exactly the set of ids — closed at both ends, and now CHECKED at
both. The seal closes it from OUTSIDE: a downstream type acquires a rendering only by acquiring
membership, and the one door to membership is a delegation whose delegate already renders. The
audit further down closes it from INSIDE: audit_segment! instantiates this bound once per row
of id::for_each_id_member!, which is the same list id! writes the admissions from — so a
member admitted with no Render impl is a compile error naming that member, where it used to be
two hand-synced files and a hope.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".