Skip to main content

LanguagePost

Trait LanguagePost 

Source
pub trait LanguagePost: Debug {
    // Required methods
    fn holes(&self) -> &[Hole];
    fn parse_post(&self, plugs: &[Arc<QTerm>]) -> Result<Arc<QTerm>>;
}

Required Methods§

Source

fn holes(&self) -> &[Hole]

Get the hole types that this language supports.

Source

fn parse_post(&self, plugs: &[Arc<QTerm>]) -> Result<Arc<QTerm>>

Fill with plugs.

Trait Implementations§

Source§

impl LanguagePost for Box<dyn LanguagePost>

Source§

fn holes(&self) -> &[Hole]

Get the hole types that this language supports.
Source§

fn parse_post(&self, plugs: &[Arc<QTerm>]) -> Result<Arc<QTerm>>

Fill with plugs.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl LanguagePost for Box<dyn LanguagePost>

Source§

fn holes(&self) -> &[Hole]

Source§

fn parse_post(&self, plugs: &[Arc<QTerm>]) -> Result<Arc<QTerm>>

Source§

impl<T: LanguagePost> LanguagePost for Box<T>

Source§

fn holes(&self) -> &[Hole]

Source§

fn parse_post(&self, plugs: &[Arc<QTerm>]) -> Result<Arc<QTerm>>

Implementors§