Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Centril/refl
/ functions
Functions
17 in github.com/Centril/refl
⨍
Functions
17
◇
Types & classes
1
Function
assert_send_sync
()
src/lib.rs:281
Method
cast
Casts a value of type `S` to `T`. This is safe because the `Id` type is always guaranteed to only be inhabited by `Id<T, T>` types by construction.
src/lib.rs:167
Method
cast_ref
Casts a value of type `&S` to `&T` where `S == T`. ```rust use refl::*; fn main() { let x: Box<u8> = Box::new(1); let refl: Id<Box<u8>, Box<u8>> = r
src/lib.rs:200
Method
cast_ref_mut
Casts a value of type `&S` to `&T` where `S == T`. ```rust use refl::*; fn main() { let mut x: Box<u8> = Box::new(1); let refl: Id<Box<u8>, Box<u8>>
src/lib.rs:223
Function
checks
()
src/lib.rs:280
Method
clone
(&self)
src/lib.rs:245
Method
clone_from
(&mut self, _: &Self)
src/lib.rs:246
Method
cmp
(&self, _other: &Self)
src/lib.rs:273
Method
default
()
src/lib.rs:239
Method
eq
(&self, _: &Self)
src/lib.rs:260
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:250
Method
hash
(&self, _: &mut H)
src/lib.rs:256
Method
ne
(&self, _: &Self)
src/lib.rs:261
Method
partial_cmp
(&self, _: &Self)
src/lib.rs:267
Function
refl
Construct a proof witness of the fact that a type is equivalent to itself. This is equivalent to `Id::REFL`.
src/lib.rs:125
Method
sym
Converts `Id<S, T>` into `Id<T, S>` since type equality is symmetric.
src/lib.rs:183
Method
trans
If you have proofs `Id<S, T>` and `Id<T, U>` you can conclude `Id<S, U>` since type equality is transitive.
src/lib.rs:187