Unit

public protocol Unit : Unit

Represents a Unit of measure with a default unit.

  • U

    Declaration

    Swift

    associatedtype U = Self
  • The default unit. For example meters for UnitLength.

    Declaration

    Swift

    static var `default`: U { get }