Docs.rs
  • ezno-parser-0.0.2
    • ezno-parser 0.0.2
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • kaleidawave
    • Dependencies
      • derive-debug-extras ^0.2.2 normal
      • derive-enum-from-into ^0.1.1 normal
      • derive-finite-automaton ^0.1.0 normal
      • derive-partial-eq-extras ^0.1.2 normal
      • enum-variants-strings ^0.2 normal
      • enum_variant_type ^0.3.1 normal
      • iterator-endiate ^0.1.0 normal
      • self-rust-tokenize ^0.3.3 normal
      • source-map ^0.11.3 normal
      • temporary-annex ^0.1.0 normal
      • tokenizer-lib ^1.5.0 normal
      • ezno-parser-visitable-derive ^0.0.1 normal
      • match_deref ^0.1.1 dev
    • Versions
    • 17.92% of the crate is documented
  • Go to latest version
  • 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
logo

logo

GetFunction

Required Methods

  • get_function
  • get_function_ref
  • insert_function

Provided Methods

  • new_extracted_function

Implementors

In ezno_parser::extractor

?
Change settings

Trait ezno_parser::extractor::GetFunction

source ·
pub trait GetFunction<T: FunctionBased + 'static> {
    // Required methods
    fn get_function_ref(&self, id: FunctionId<T>) -> Option<&FunctionBase<T>>;
    fn get_function(&mut self, id: FunctionId<T>) -> FunctionBase<T>;
    fn insert_function(&mut self, func: FunctionBase<T>);

    // Provided method
    fn new_extracted_function(
        &mut self,
        func: FunctionBase<T>
    ) -> ExtractedFunction<T> { ... }
}

Required Methods§

source

fn get_function_ref(&self, id: FunctionId<T>) -> Option<&FunctionBase<T>>

source

fn get_function(&mut self, id: FunctionId<T>) -> FunctionBase<T>

source

fn insert_function(&mut self, func: FunctionBase<T>)

Provided Methods§

source

fn new_extracted_function( &mut self, func: FunctionBase<T> ) -> ExtractedFunction<T>

Implementors§

source§

impl GetFunction<ArrowFunctionBase> for ExtractedFunctions

source§

impl GetFunction<ObjectLiteralMethodBase> for ExtractedFunctions

source§

impl GetFunction<ClassConstructorBase> for ExtractedFunctions

source§

impl GetFunction<ClassFunctionBase> for ExtractedFunctions

source§

impl GetFunction<GeneralFunctionBase<ExpressionPosition>> for ExtractedFunctions

source§

impl GetFunction<GeneralFunctionBase<StatementPosition>> for ExtractedFunctions