Trait ParseDeclSep

Source
pub trait ParseDeclSep {
    type Output;

    // Required method
    fn parse_decl_sep(
        input: &str,
        entity_references: Rc<RefCell<HashMap<(Name, EntitySource), EntityValue>>>,
        entity_source: EntitySource,
    ) -> IResult<&str, Self::Output>;

    // Provided method
    fn expand_entity(
        reference: &Reference,
        entity_references: &Rc<RefCell<HashMap<(Name, EntitySource), EntityValue>>>,
        entity_source: EntitySource,
    ) -> Option<EntityValue> { ... }
}

Required Associated Types§

Required Methods§

Source

fn parse_decl_sep( input: &str, entity_references: Rc<RefCell<HashMap<(Name, EntitySource), EntityValue>>>, entity_source: EntitySource, ) -> IResult<&str, Self::Output>

Provided Methods§

Source

fn expand_entity( reference: &Reference, entity_references: &Rc<RefCell<HashMap<(Name, EntitySource), EntityValue>>>, entity_source: EntitySource, ) -> Option<EntityValue>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§