Docs.rs
  • rustpython-ast-0.4.0
    • rustpython-ast 0.4.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • coolreader18
    • github:rustpython:packaging
    • Dependencies
      • is-macro ^0.3.0 normal
      • malachite-bigint ^0.2.0 normal optional
      • num-bigint ^0.4.3 normal optional
      • rustpython-literal ^0.4.0 normal optional
      • rustpython-parser-core ^0.4.0 normal
      • static_assertions ^1.1.0 normal
    • Versions
    • 10.49% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

rustpython_ast0.4.0

Pattern

Aliased Type

Variants

  • MatchAs
  • MatchClass
  • MatchMapping
  • MatchOr
  • MatchSequence
  • MatchSingleton
  • MatchStar
  • MatchValue

Trait Implementations

  • Located
  • LocatedMut

In rustpython_ast::located

rustpython_ast::located

Type Alias Pattern

Source
pub type Pattern = Pattern<SourceRange>;

Aliased Type§

enum Pattern {
    MatchValue(PatternMatchValue<SourceRange>),
    MatchSingleton(PatternMatchSingleton<SourceRange>),
    MatchSequence(PatternMatchSequence<SourceRange>),
    MatchMapping(PatternMatchMapping<SourceRange>),
    MatchClass(PatternMatchClass<SourceRange>),
    MatchStar(PatternMatchStar<SourceRange>),
    MatchAs(PatternMatchAs<SourceRange>),
    MatchOr(PatternMatchOr<SourceRange>),
}

Variants§

§

MatchValue(PatternMatchValue<SourceRange>)

§

MatchSingleton(PatternMatchSingleton<SourceRange>)

§

MatchSequence(PatternMatchSequence<SourceRange>)

§

MatchMapping(PatternMatchMapping<SourceRange>)

§

MatchClass(PatternMatchClass<SourceRange>)

§

MatchStar(PatternMatchStar<SourceRange>)

§

MatchAs(PatternMatchAs<SourceRange>)

§

MatchOr(PatternMatchOr<SourceRange>)

Trait Implementations§

Source§

impl Located for Pattern

Source§

fn range(&self) -> SourceRange

Source§

fn location(&self) -> SourceLocation

Source§

fn end_location(&self) -> Option<SourceLocation>

Source§

impl LocatedMut for Pattern

Source§

fn range_mut(&mut self) -> &mut SourceRange