Hi there; Interesting library!
It seems generally well documented from a user's perspective. However, I found the amount of comments justifying uses of unsafe { .. } and unsafe impl to be lacking. I think it could help everyone (including future you...) to document why parts of the library is sound.
As an example, I found it unclear why https://docs.rs/swym/0.1.0-preview/src/swym/tcell.rs.html#197-210 is sound. In particular, I conflated Borrow with the standard library's trait and didn't spot the exclusion of uninhabited types T (if you didn't rule those out it might have been unsound).
Best wishes // Centril
Hi there; Interesting library!
It seems generally well documented from a user's perspective. However, I found the amount of comments justifying uses of
unsafe { .. }andunsafe implto be lacking. I think it could help everyone (including future you...) to document why parts of the library is sound.As an example, I found it unclear why https://docs.rs/swym/0.1.0-preview/src/swym/tcell.rs.html#197-210 is sound. In particular, I conflated
Borrowwith the standard library's trait and didn't spot the exclusion of uninhabited typesT(if you didn't rule those out it might have been unsound).Best wishes // Centril