4 lines
11 KiB
HTML
4 lines
11 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Defines an abstract syntax for regular expressions."><title>regex_syntax::ast - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="regex_syntax" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module ast</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../regex_syntax/index.html">regex_<wbr>syntax</a><span class="version">0.8.10</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module ast</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate regex_<wbr>syntax</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">regex_syntax</a></div><h1>Module <span>ast</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/regex_syntax/ast/mod.rs.html#1-1807">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines an abstract syntax for regular expressions.</p>
|
|
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="parse/index.html" title="mod regex_syntax::ast::parse">parse</a></dt><dd>This module provides a regular expression parser.</dd><dt><a class="mod" href="print/index.html" title="mod regex_syntax::ast::print">print</a></dt><dd>This module provides a regular expression printer for <code>Ast</code>.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Alternation.html" title="struct regex_syntax::ast::Alternation">Alternation</a></dt><dd>An alternation of regular expressions.</dd><dt><a class="struct" href="struct.Assertion.html" title="struct regex_syntax::ast::Assertion">Assertion</a></dt><dd>A single zero-width assertion.</dd><dt><a class="struct" href="struct.CaptureName.html" title="struct regex_syntax::ast::CaptureName">Capture<wbr>Name</a></dt><dd>A capture name.</dd><dt><a class="struct" href="struct.ClassAscii.html" title="struct regex_syntax::ast::ClassAscii">Class<wbr>Ascii</a></dt><dd>An ASCII character class.</dd><dt><a class="struct" href="struct.ClassBracketed.html" title="struct regex_syntax::ast::ClassBracketed">Class<wbr>Bracketed</a></dt><dd>A bracketed character class, e.g., <code>[a-z0-9]</code>.</dd><dt><a class="struct" href="struct.ClassPerl.html" title="struct regex_syntax::ast::ClassPerl">Class<wbr>Perl</a></dt><dd>A Perl character class.</dd><dt><a class="struct" href="struct.ClassSetBinaryOp.html" title="struct regex_syntax::ast::ClassSetBinaryOp">Class<wbr>SetBinary<wbr>Op</a></dt><dd>A Unicode character class set operation.</dd><dt><a class="struct" href="struct.ClassSetRange.html" title="struct regex_syntax::ast::ClassSetRange">Class<wbr>SetRange</a></dt><dd>A single character class range in a set.</dd><dt><a class="struct" href="struct.ClassSetUnion.html" title="struct regex_syntax::ast::ClassSetUnion">Class<wbr>SetUnion</a></dt><dd>A union of items inside a character class set.</dd><dt><a class="struct" href="struct.ClassUnicode.html" title="struct regex_syntax::ast::ClassUnicode">Class<wbr>Unicode</a></dt><dd>A Unicode character class.</dd><dt><a class="struct" href="struct.Comment.html" title="struct regex_syntax::ast::Comment">Comment</a></dt><dd>A comment from a regular expression with an associated span.</dd><dt><a class="struct" href="struct.Concat.html" title="struct regex_syntax::ast::Concat">Concat</a></dt><dd>A concatenation of regular expressions.</dd><dt><a class="struct" href="struct.Error.html" title="struct regex_syntax::ast::Error">Error</a></dt><dd>An error that occurred while parsing a regular expression into an abstract
|
|
syntax tree.</dd><dt><a class="struct" href="struct.Flags.html" title="struct regex_syntax::ast::Flags">Flags</a></dt><dd>A group of flags.</dd><dt><a class="struct" href="struct.FlagsItem.html" title="struct regex_syntax::ast::FlagsItem">Flags<wbr>Item</a></dt><dd>A single item in a group of flags.</dd><dt><a class="struct" href="struct.Group.html" title="struct regex_syntax::ast::Group">Group</a></dt><dd>A grouped regular expression.</dd><dt><a class="struct" href="struct.Literal.html" title="struct regex_syntax::ast::Literal">Literal</a></dt><dd>A single literal expression.</dd><dt><a class="struct" href="struct.Position.html" title="struct regex_syntax::ast::Position">Position</a></dt><dd>A single position in a regular expression.</dd><dt><a class="struct" href="struct.Repetition.html" title="struct regex_syntax::ast::Repetition">Repetition</a></dt><dd>A repetition operation applied to a regular expression.</dd><dt><a class="struct" href="struct.RepetitionOp.html" title="struct regex_syntax::ast::RepetitionOp">Repetition<wbr>Op</a></dt><dd>The repetition operator itself.</dd><dt><a class="struct" href="struct.SetFlags.html" title="struct regex_syntax::ast::SetFlags">SetFlags</a></dt><dd>A group of flags that is not applied to a particular regular expression.</dd><dt><a class="struct" href="struct.Span.html" title="struct regex_syntax::ast::Span">Span</a></dt><dd>Span represents the position information of a single AST item.</dd><dt><a class="struct" href="struct.WithComments.html" title="struct regex_syntax::ast::WithComments">With<wbr>Comments</a></dt><dd>An abstract syntax tree for a singular expression along with comments
|
|
found.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.AssertionKind.html" title="enum regex_syntax::ast::AssertionKind">Assertion<wbr>Kind</a></dt><dd>An assertion kind.</dd><dt><a class="enum" href="enum.Ast.html" title="enum regex_syntax::ast::Ast">Ast</a></dt><dd>An abstract syntax tree for a single regular expression.</dd><dt><a class="enum" href="enum.ClassAsciiKind.html" title="enum regex_syntax::ast::ClassAsciiKind">Class<wbr>Ascii<wbr>Kind</a></dt><dd>The available ASCII character classes.</dd><dt><a class="enum" href="enum.ClassPerlKind.html" title="enum regex_syntax::ast::ClassPerlKind">Class<wbr>Perl<wbr>Kind</a></dt><dd>The available Perl character classes.</dd><dt><a class="enum" href="enum.ClassSet.html" title="enum regex_syntax::ast::ClassSet">Class<wbr>Set</a></dt><dd>A character class set.</dd><dt><a class="enum" href="enum.ClassSetBinaryOpKind.html" title="enum regex_syntax::ast::ClassSetBinaryOpKind">Class<wbr>SetBinary<wbr>OpKind</a></dt><dd>The type of a Unicode character class set operation.</dd><dt><a class="enum" href="enum.ClassSetItem.html" title="enum regex_syntax::ast::ClassSetItem">Class<wbr>SetItem</a></dt><dd>A single component of a character class set.</dd><dt><a class="enum" href="enum.ClassUnicodeKind.html" title="enum regex_syntax::ast::ClassUnicodeKind">Class<wbr>Unicode<wbr>Kind</a></dt><dd>The available forms of Unicode character classes.</dd><dt><a class="enum" href="enum.ClassUnicodeOpKind.html" title="enum regex_syntax::ast::ClassUnicodeOpKind">Class<wbr>Unicode<wbr>OpKind</a></dt><dd>The type of op used in a Unicode character class.</dd><dt><a class="enum" href="enum.ErrorKind.html" title="enum regex_syntax::ast::ErrorKind">Error<wbr>Kind</a></dt><dd>The type of an error that occurred while building an AST.</dd><dt><a class="enum" href="enum.Flag.html" title="enum regex_syntax::ast::Flag">Flag</a></dt><dd>A single flag.</dd><dt><a class="enum" href="enum.FlagsItemKind.html" title="enum regex_syntax::ast::FlagsItemKind">Flags<wbr>Item<wbr>Kind</a></dt><dd>The kind of an item in a group of flags.</dd><dt><a class="enum" href="enum.GroupKind.html" title="enum regex_syntax::ast::GroupKind">Group<wbr>Kind</a></dt><dd>The kind of a group.</dd><dt><a class="enum" href="enum.HexLiteralKind.html" title="enum regex_syntax::ast::HexLiteralKind">HexLiteral<wbr>Kind</a></dt><dd>The type of a Unicode hex literal.</dd><dt><a class="enum" href="enum.LiteralKind.html" title="enum regex_syntax::ast::LiteralKind">Literal<wbr>Kind</a></dt><dd>The kind of a single literal expression.</dd><dt><a class="enum" href="enum.RepetitionKind.html" title="enum regex_syntax::ast::RepetitionKind">Repetition<wbr>Kind</a></dt><dd>The kind of a repetition operator.</dd><dt><a class="enum" href="enum.RepetitionRange.html" title="enum regex_syntax::ast::RepetitionRange">Repetition<wbr>Range</a></dt><dd>A range repetition operator.</dd><dt><a class="enum" href="enum.SpecialLiteralKind.html" title="enum regex_syntax::ast::SpecialLiteralKind">Special<wbr>Literal<wbr>Kind</a></dt><dd>The type of a special literal.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Visitor.html" title="trait regex_syntax::ast::Visitor">Visitor</a></dt><dd>A trait for visiting an abstract syntax tree (AST) in depth first order.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.visit.html" title="fn regex_syntax::ast::visit">visit</a></dt><dd>Executes an implementation of <code>Visitor</code> in constant stack space.</dd></dl></section></div></main></body></html> |