[][src]Trait ascesis::ContentFormat

pub trait ContentFormat: Debug {
    fn expected_extensions(&self) -> &[&str];
fn script_is_acceptable(&self, script: &str) -> bool;
fn script_to_content(
        &self,
        cxt: &Arc<Mutex<Context>>,
        script: &str
    ) -> Result<Box<dyn Content + 'static>, Box<dyn Error + 'static>>; fn path_is_acceptable(&self, path: &Path) -> bool { ... } }

Required methods

fn expected_extensions(&self) -> &[&str]

fn script_is_acceptable(&self, script: &str) -> bool

fn script_to_content(
    &self,
    cxt: &Arc<Mutex<Context>>,
    script: &str
) -> Result<Box<dyn Content + 'static>, Box<dyn Error + 'static>>

Loading content...

Provided methods

fn path_is_acceptable(&self, path: &Path) -> bool

Loading content...

Implementors

impl ContentFormat for AscesisFormat[src]

impl ContentFormat for InteractiveFormat[src]

impl ContentFormat for YamlFormat[src]

Loading content...