Skip to content
Snippets Groups Projects

gstreamer: Mark various enums as exhaustive

Merged Sebastian Dröge requested to merge slomo/gstreamer-rs:exhaustive-enums into main

This reduces their size to 4 bytes instead of 5 bytes, and as such makes it possible to store them in a register on 32 bit platforms too. Additionally it makes it possible for enums like Result<FlowSuccess, FlowReturn> to be stored in a single register on 64 bit platforms.

Also the conversions between the C and Rust type is a simple copy of the value now instead of a mapping.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading