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§
sourcetype Mtbl: MentionableBase<'a>
type Mtbl: MentionableBase<'a>
Type of the associated object.
Required Methods§
sourcefn resolve(self: Arc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>where
OFctr<'a, Ctx, Self>: FactoryParse<'a, Ctx>,
fn resolve(self: Arc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>where OFctr<'a, Ctx, Self>: FactoryParse<'a, Ctx>,
Try resolving the value.
sourcefn resolve_bytes(self: Arc<Self>) -> HashResolution<'a, Ctx>
fn resolve_bytes(self: Arc<Self>) -> HashResolution<'a, Ctx>
Try resolving the bytes. Should avoid parsing the value.