Skip to main content

BodyLanguage

Trait BodyLanguage 

Source
pub trait BodyLanguage: AstNode {
    const LANGUAGE: &'static str;

    // Required method
    fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>);

    // Provided method
    fn is_language(language: Option<LanguageName>) -> bool { ... }
}

Required Associated Constants§

Source

const LANGUAGE: &'static str

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BodyLanguage for Plpgsql

Source§

const LANGUAGE: &'static str = "plpgsql"

Source§

impl BodyLanguage for SourceFile

Source§

const LANGUAGE: &'static str = "sql"