From 32f4b46a44e15ba575a6eb08081bbd4f4c703572 Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 1 Jul 2023 00:15:49 +0000 Subject: [PATCH] `Origin` docs --- src/rcore/origin.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rcore/origin.rs b/src/rcore/origin.rs index 831323a..2817ee3 100644 --- a/src/rcore/origin.rs +++ b/src/rcore/origin.rs @@ -4,11 +4,13 @@ use super::*; pub trait Origin<'a, Ctx: Context<'a>>: 'a { /// Type of the associated object. type Mtbl: Mentionable<'a, Ctx>; - /// Value of the associated factory. + /// Clone the associated factory. fn factory(&self) -> OFctr<'a, Ctx, Self>; /// Try resolving the value. fn resolve(self: Rc) -> Resolution<'a, Ctx, Self::Mtbl>; + /// Try resolving the bytes. Should avoid parsing the value. fn resolve_bytes(self: Rc) -> HashResolution<'a, Ctx>; } +/// Type of the [`Factory`] associated with the [`Origin`]. pub type OFctr<'a, Ctx, O> = Fctr<'a, Ctx, >::Mtbl>;