Skip to content

Commit

Permalink
feat: ffi safety for FlagSet, closes #27
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
  • Loading branch information
rjzak committed Mar 4, 2024
1 parent ee863be commit 34afef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ pub trait Flags:
}
}

#[repr(C)]
#[derive(Copy, Clone, Eq, Hash)]
pub struct FlagSet<F: Flags>(F::Type);

Expand Down

0 comments on commit 34afef7

Please sign in to comment.