Crate quoth

source ·

Modules§

Structs§

  • Represents a diagnostic message that can be displayed to the user, typically indicating a parsing error or highlighting some fact about a Span of input
  • Represents an error that occurred during parsing.
  • An iterator over the lines of an IndexedStr.
  • A &str replacement that allows for safe indexing and slicing of multi-byte characters.
  • A String replacement that allows for safe indexing and slicing of multi-byte characters.
  • Represents a line and column within a Source.
  • Represents a stream of text that can be parsed.
  • Represents source text that can be indexed into to define individual Spans.
  • Represents a specific range of text within a Source.
  • Indicates that two Spans could not be joined because they do not come from the same Source.

Enums§

Traits§

  • A trait that facilitates safe interaction with strings that contain multi-byte characters.
  • A trait for types that have multiple Spans.
  • Types that can be parsed using Quoth must implement this trait.
  • Generic over types that can be used to create a Regex
  • Indicates that a type can be used to peek at a ParseStream.
  • A trait for types that have a Span.

Functions§

  • Utility function to find the common prefix between two strs.
  • Attempts to parse the specified string into a value of type T.

Type Aliases§

  • Represents the result of a parsing operation.

Derive Macros§

  • Derives Display and FromStr based on the the parse() and unparse() implementations of Parsable for this type, respectively.
  • Automatically derives Spanned for the annotated type. This will work as long as there is some struct field of type Span.