NodeIDProtocol
public protocol NodeIDProtocol : CustomStringConvertible, Decodable, Encodable, Hashable, Sendable
A type denoting the ID of a node.
-
The raw value of the ID.
Declaration
Swift
var rawValue: NodeRawIdentity { get } -
The identifier of type of the referred node.
Declaration
Swift
var kind: NodeKind { get } -
Creates an instance with the same raw value as
x, failing iffx.kindis incompatible with the kind of nodes thatSelfdenotes.Declaration
Swift
init?<Other>(_ x: Other) where Other : NodeIDProtocol -
isGenericScopeExtension methodtrueiffselfdenotes a generic scope.Declaration
Swift
public var isGenericScope: Bool { get } -
descriptionExtension methodDeclaration
Swift
public var description: String { get }
View on GitHub