Trait radn::rcore::Origin

source ·
pub trait Origin<'a, Ctx: Context<'a>>: 'a + Send + Sync {
    type Mtbl: MentionableBase<'a>;

    // Required methods
    fn factory(&self) -> OFctr<'a, Ctx, Self>;
    fn resolve(self: Arc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>
       where OFctr<'a, Ctx, Self>: FactoryParse<'a, Ctx>;
    fn resolve_bytes(self: Arc<Self>) -> HashResolution<'a, Ctx>;
}
Expand description

Represents a potentially resolvable Mentionable.

Required Associated Types§

source

type Mtbl: MentionableBase<'a>

Type of the associated object.

Required Methods§

source

fn factory(&self) -> OFctr<'a, Ctx, Self>

Clone the associated factory.

source

fn resolve(self: Arc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>where OFctr<'a, Ctx, Self>: FactoryParse<'a, Ctx>,

Try resolving the value.

source

fn resolve_bytes(self: Arc<Self>) -> HashResolution<'a, Ctx>

Try resolving the bytes. Should avoid parsing the value.

Implementors§