Back to Sourcery

Typed

docs/Protocols/Typed.html

2.3.01.1 KB
Original Source

Typed

public protocol Typed

Descibes typed declaration, i.e. variable, method parameter, tuple element, enum case associated value

`

                type
                `

Type, if known

Declaration

Swift

var type: Type? { get }

`

                typeName
                `

Type name

Declaration

Swift

var typeName: TypeName { get }

`

                isOptional
                `

Whether type is optional

Declaration

Swift

var isOptional: Bool { get }

`

                isImplicitlyUnwrappedOptional
                `

Whether type is implicitly unwrapped optional

Declaration

Swift

var isImplicitlyUnwrappedOptional: Bool { get }

`

                unwrappedTypeName
                `

Type name without attributes and optional type information

Declaration

Swift

var unwrappedTypeName: String { get }

Copyright © 2016-2021 Pixle. All rights reserved.

Generated by jazzy ♪♫ v0.14.0, a Realm project.