extension Duration : AutomationValue, AutomationValue, Copyable, Copyable, Equatable, Escapable, Escapable, Hashable, Sendable, Sendable, StructDataRepresentable
-
The number of seconds in duration.
Declaration
Swift
var seconds: Int64 { get }
-
The number of nanoseconds in duration.
Declaration
Swift
var nanoseconds: Int64 { get }
-
Initializes the duration with the trait decoder.
Declaration
Swift
init(decoder: TraitDecoder) throws
Parameters
decoder
The trait decoder to decode the duration.
-
Encodes the duration to the trait encoder.
Declaration
Swift
func encode(with encoder: TraitEncoder) throws
-
Undocumented
Declaration
Swift
enum StructFields
extension Duration.StructFields : Equatable, Field, Hashable, RawRepresentable, Sendable
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?