CoreTrait
@dynamicMemberLookup
public struct CoreTrait<T> where T : CoreTraitDescription
An entity declared in Hylo’s standard library.
-
The AST in which the entity is defined.
Declaration
Swift
fileprivate let ast: AST -
A description of this entity’s declaration.
Declaration
Swift
fileprivate let entity: T -
The definition of the trait.
Declaration
Swift
public var type: TraitType { get } -
Projects the entity description at
m.Declaration
Swift
public subscript<R>(dynamicMember m: KeyPath<T, R>) -> R { get }
View on GitHub