-
Notifications
You must be signed in to change notification settings - Fork 1
Literal
kareman edited this page Aug 13, 2020
·
5 revisions
Matches a sequence of elements.
public struct Literal<Input: BidirectionalCollection>: Pattern where Input.Element: Hashable
If empty, it will always succeed without consuming any input.
ExpressibleByExtendedGraphemeClusterLiteral
, ExpressibleByStringLiteral
, ExpressibleByUnicodeScalarLiteral
, Pattern
, RegexConvertible
@inlinable public init(_ input: Input)
Matches sequence
.
@inlinable public init<S: Sequence>(_ sequence: S) where S.Element == Input.Element, Input == String
let elements: Input
var description: String
@inlinable public func createInstructions(_ instructions: inout ContiguousArray<Instruction<Input>>)
Matches the following pattern without consuming any input.
@inlinable public static prefix func &&(me: Literal) -> AndPattern<Literal>
Generated at 2020-08-23T12:56:49+0000 using swift-doc 1.0.0-beta.3.