SingularResolution
for Point
to rcore
This commit is contained in:
parent
4de6fec722
commit
9e9b281c6d
@ -5,3 +5,15 @@ pub trait SingularResolution<'a, Ctx: Context<'a>>: 'a + Send + Sync {
|
||||
|
||||
fn s_hash(&self) -> Hash;
|
||||
}
|
||||
|
||||
impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> SingularResolution<'a, Ctx>
|
||||
for Point<'a, Ctx, A>
|
||||
{
|
||||
fn singular(self: Arc<Self>) -> HashResolution<'a, Ctx> {
|
||||
self.origin.ref_resolve_bytes()
|
||||
}
|
||||
|
||||
fn s_hash(&self) -> Hash {
|
||||
self.point
|
||||
}
|
||||
}
|
||||
|
@ -2,18 +2,6 @@ use crate::func::context::*;
|
||||
|
||||
use super::*;
|
||||
|
||||
impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> SingularResolution<'a, Ctx>
|
||||
for Point<'a, Ctx, A>
|
||||
{
|
||||
fn singular(self: Arc<Self>) -> HashResolution<'a, Ctx> {
|
||||
self.origin.ref_resolve_bytes()
|
||||
}
|
||||
|
||||
fn s_hash(&self) -> Hash {
|
||||
self.point
|
||||
}
|
||||
}
|
||||
|
||||
/// ```rust
|
||||
/// # use radn::rcore::Context;
|
||||
/// # use radn::rcore::Factory;
|
||||
|
Loading…
Reference in New Issue
Block a user