Skip to content

Commit

Permalink
#139 Deprecate BitMaskOption
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 6, 2024
1 parent 2e7b503 commit 57095e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Bluetooth/BitMaskOption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/// Enum that represents a bit mask flag / option.
///
/// Basically `Swift.OptionSet` for enums.
@available(*, deprecated, message: "Use OptionSet instead")
public protocol BitMaskOption: RawRepresentable, Hashable, CaseIterable where RawValue: FixedWidthInteger { }

public extension Sequence where Element: BitMaskOption {
Expand Down Expand Up @@ -40,7 +41,7 @@ public extension BitMaskOption {
/// Integer-backed array type for `BitMaskOption`.
///
/// The elements are packed in the integer with bitwise math and stored on the stack.
@frozen
@available(*, deprecated, message: "Use OptionSet instead")
public struct BitMaskOptionSet <Element: BitMaskOption>: RawRepresentable {

public typealias RawValue = Element.RawValue
Expand Down

0 comments on commit 57095e8

Please sign in to comment.