-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deep code review introducing lifetime required for Reader, Writer etc.
- Loading branch information
1 parent
58964c0
commit 2c51b7a
Showing
17 changed files
with
228 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pub trait HKP { | ||
type T<A>; | ||
pub trait HKP<'a> { | ||
type T<A: 'a>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
use crate::core::hkp::HKP; | ||
|
||
pub trait Transform<A>: HKP { | ||
type This: HKP; | ||
pub trait Transform<'a, A>: HKP<'a> { | ||
type This: HKP<'a>; | ||
|
||
fn from_hkp<B>(a: <Self::This as HKP>::T<B>) -> Self::T<B>; | ||
fn from_hkp<B>(a: <Self::This as HKP<'a>>::T<B>) -> Self::T<B>; | ||
|
||
fn from_self<B>(a: Self::T<B>) -> <Self::This as HKP>::T<B>; | ||
fn from_self<B>(a: Self::T<B>) -> <Self::This as HKP<'a>>::T<B>; | ||
|
||
fn to_hkp(self) -> <Self::This as HKP>::T<A>; | ||
fn to_hkp(self) -> <Self::This as HKP<'a>>::T<A>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.