From 80b349b532d57e63c46e1bfe0011be71a8bde59c Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 1 Jul 2023 00:20:14 +0000 Subject: [PATCH] `Point::resolve_map` docs --- src/rcore/point.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rcore/point.rs b/src/rcore/point.rs index 1ca1e89..f0bad20 100644 --- a/src/rcore/point.rs +++ b/src/rcore/point.rs @@ -11,6 +11,7 @@ pub struct Point<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> { } impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> PartialEq for Point<'a, Ctx, A> { + /// Note: this doesn't check for [Factory] equality. fn eq(&self, other: &Self) -> bool { self.point == other.point } @@ -31,6 +32,7 @@ impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> Point<'a, Ctx, A> { self.origin.clone().resolve() } + /// Resolve the object, then map the [ResolutionResult]. pub fn resolve_map( &self, f: impl 'a + FnOnce(ResolutionResult<'a, Ctx, A>) -> B,