Skip to content

Structure

LeafData

LeafData is a “pseudo-protocol” wrapping the physically storable Swift data types Leaf can use directly
struct LeafData

Overview

  • (Bool, Int, Double, String, Array, Dictionary, Data) are the inherent root types supported, all of which may also be representable as Optional values.

  • NaturalType presents these cases plus Void as a case for functional LeafSymbols

  • nil is creatable, but only within context of a root base type - eg, .nil(.bool) == Bool?

Topics

Operators

Initializers

Instance Properties

Instance Methods

Type Properties

Type Methods

Enumerations

Relationships

Conforms To

  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.ExpressibleByArrayLiteral
  • Swift.ExpressibleByBooleanLiteral
  • Swift.ExpressibleByDictionaryLiteral
  • Swift.ExpressibleByExtendedGraphemeClusterLiteral
  • Swift.ExpressibleByFloatLiteral
  • Swift.ExpressibleByIntegerLiteral
  • Swift.ExpressibleByNilLiteral
  • Swift.ExpressibleByStringLiteral
  • Swift.ExpressibleByUnicodeScalarLiteral
  • Swift.Sendable
  • Swift.SendableMetatype