Nikolai Vazquez
Nikolai Vazquez
RandomKit is a Swift framework for OS X, iOS, and watchOS that extends Swift and ObjC types to produce random values.
**Is your feature request related to a problem? Please describe.** Not all GUI app users are sighted or can see well. This project does not indicate any effort to make...
This currently doesn't work outside of this crate since it seems that macro-internal lints aren't exposed across crate boundaries.
This introduces `assert_field_offsets!` for ensuring that given `struct` fields are at specific offsets. This current implementation works in Rust 1.37 and 1.38. However, the current beta and nightly compilers fail...
By using [`on_unimplemented`](https://doc.rust-lang.org/unstable-book/language-features/on-unimplemented.html) (tracking issue: https://github.com/rust-lang/rust/issues/29628), custom error messages like the following can be emitted on assertion failure: ``` error[E0277]: static assertion failed --> tests/messages.rs:14:1 | 14 | assert_impl_one!(Foo: A,...
As per @robinkrahl's request (https://github.com/nvzqz/static-assertions-rs/issues/2#issuecomment-465547413), I made an attempt at this but it doesn't necessarily work. The only limited working form is if `$v` is an `ident` or `$(tt)+` where...
This turns all `RandomBytesGenerator` into infinite `Sequence`s of their `Bytes` type. This type allows for consuming and iterating over a RandomBytesGenerator without having to call `randomBytes()` directly. This mainly serves...
The `ARC4Random` type may be better off if it could 1. Be (re)seeded 2. Be independent of `arc4random()` and `arc4random_uniform()` 3. Have independent instances
RandomKit should be able to generate random floating-point values with various distributions. They should: - Not add too much compile time - Be modular - Be fast Rust's [rand crate](https://github.com/rust-lang-nursery/rand)...