# ClosureUnitEnum

    enum ClosureUnitEnum

Describes the units of measure for a dimension of a composed closure. The unit range is
determined by the values stored in the `min` and `max` fields of the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureDimensionTrait/UnitRangeStruct.html`.
- `


  ### [millimeter](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureDimensionTrait/ClosureUnitEnum#/s:15GoogleHomeTypes6MatterO21ClosureDimensionTraitV0E8UnitEnumO10millimeteryA2GmF)


  ` Millimeter used as unit.

  #### Declaration

  Swift

      case millimeter

- `


  ### [degree](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureDimensionTrait/ClosureUnitEnum#/s:15GoogleHomeTypes6MatterO21ClosureDimensionTraitV0E8UnitEnumO6degreeyA2GmF)


  ` Degree used as unit.

  #### Declaration

  Swift

      case degree

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureDimensionTrait/ClosureUnitEnum#/s:15GoogleHomeTypes6MatterO21ClosureDimensionTraitV0E8UnitEnumO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |