diff --git a/src/lib.rs b/src/lib.rs index 6e13ac8..13274f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,11 +180,11 @@ impl Id { } /// Converts `Id` into `Id` since type equality is symmetric. - pub fn sym(self) -> Id { Id(PhantomData) } + pub const fn sym(self) -> Id { Id(PhantomData) } /// If you have proofs `Id` and `Id` you can conclude `Id` /// since type equality is transitive. - pub fn trans(self, _: Id) -> Id { Id(PhantomData) } + pub const fn trans(self, _: Id) -> Id { Id(PhantomData) } /// Casts a value of type `&S` to `&T` where `S == T`. ///