Enyium

Results 92 issues of Enyium

I wrote the crates `foo` and `foo-builder` (not really "foo"). A third-party crate will have `foo` as a dependency and `foo-builder` as a build dependency. In its build script, it...

I have C++ functions that must be called with a mutable or immutable raw pointer to a C++ object I hold as a `UniquePtr` in a Rust struct. (The API...

I have an `enum` in a CXX bridge that's synchronized with its C++ source by also having it as an `extern "C++"` `type`. It has the attribute `#[repr(i32)]` and contains...

Because the `std` library set the precedence of calling a parameter `this` instead of `self` when necessary, I do the same. (For examples, search for `(this` on the [`Rc` docs...

There are a number of member functions from the C++ API I use that currently need to be wrapped manually: ```rust unsafe extern "C++" { include!("foo/src/bar.h"); type CppType; fn UnwrappedMemberFn(self:...

My build script needs to be rerun when one of my CXX bridges changes. But it would be unnecessary to rerun it every time Rust code changes that utilizes a...

I wrote this code for my purposes. But you can feel free to edit it and incorparate it into your crate. ### Example transformations ``` This is a test sentence....

I use this crate to convert an `f64` into an fps value (video framerate) consisting of `u32` numerator and denominator. The documentation for [`Ratio::::from_f64()`](https://docs.rs/num-rational/latest/num_rational/struct.Ratio.html#method.from_f64-9), for [`Ratio`](https://docs.rs/num-rational/latest/num_rational/struct.Ratio.html) and for [`num_traits::cast::FromPrimitive`](https://docs.rs/num-traits/0.2.15/num_traits/cast/trait.FromPrimitive.html) is...

- `Ratio` now specifies exact cases when converting to it yields `None`. --- See https://github.com/rust-num/num-rational/issues/113.

- `FromPrimitive` functions now refer to implementor for details. --- See https://github.com/rust-num/num-rational/issues/113.