You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use identity ToStatic impls for the Copy identity types (algesten#975)
The derive generates a separate shadow Static type that isn't
Eq/Hash/Borrow<Self>, so a derived identity type can't be a HashMap key
inside a #[drv::memo] projection. These types are all Copy with a
structural PartialEq, so an identity ToStatic (Static = Self) is the
correct shape — it works as both a value and a map key, mirroring how
drv handles primitives. A small gated drv_identity_copy! macro replaces
the per-type derive across Mid/Rid/Ssrc/Pt/SessionId/SeqNo, Direction,
MediaKind, VideoOrientation, Codec, the H265 profile types, Frequency,
CodecSpec, FormatParams, and MediaTime (folding in its former
hand-written impl).
0 commit comments