Tag
public final class Tag
extension Tag: CustomStringConvertible
extension Tag: Hashable
extension Tag: RawRepresentable
extension Tag: Codable
extension Tag: ExpressibleByStringLiteral
Tags describe the the type of a Node.
-
Tag name.
See moreDeclaration
-
Shorthand accessor for
Tag(.implicit).Declaration
Swift
public static var implicit: Tag { get } -
Create a
Tagwith the specified name, resolver and constructor.Declaration
Swift
public init(_ name: Name, _ resolver: Resolver = .default, _ constructor: Constructor = .default)Parameters
nameTag name.
resolverResolverthis tag should use,.defaultif omitted.constructorConstructorthis tag should use,.defaultif omitted. -
Lens returning a copy of the current
Tagwith the specified overridden changes.Note
Omitting or passing nil for a parameter will preserve the current
Tag‘s value in the copy.Declaration
Swift
public func copy(with name: Name? = nil, resolver: Resolver? = nil, constructor: Constructor? = nil) -> TagParameters
nameOverridden tag name.
resolverOverridden resolver.
constructorOverridden constructor.
Return Value
A copy of the current
Tagwith the specified overridden changes. -
A textual representation of this tag.
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public convenience init?(rawValue: String) -
Declaration
Swift
public var rawValue: String { get }
View on GitHub
Install in Dash