Point::resolve_map
docs
This commit is contained in:
parent
32f4b46a44
commit
80b349b532
@ -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<B: 'a>(
|
||||
&self,
|
||||
f: impl 'a + FnOnce(ResolutionResult<'a, Ctx, A>) -> B,
|
||||
|
Loading…
Reference in New Issue
Block a user