-
I'm looking if move my parsing to rowan, and one thing looks complicated. I wish to also have nice error reporting, like using [codespan](https://github.com/brendanzab/codespan), but have trouble maki…
mamcx updated
2 years ago
-
Here's the example:
```rust
union Face = Head | Tail;
union CoinFace = Penny(Face)
| Nickel(Face)
| Dime (Face)
| Quarter(Face);
predicate…
-
I'm not sure if this is intended (it probably is). But the freelist is not necessarily the same after a serialization cycle.
This means that doing `operations_1 -> ser -> deser -> operations_2` doe…
-
Wakers from already-finished futures can be used to wake newer futures. The problem is that `PinSlab` doesn't prevent ABA.
The full code (maybe not the minimal one):
```rust
use std::future::{pol…
loyd updated
3 months ago
-
At the moment it only implements `Copy` when `T: Copy`, but there's no memory-safety reason for it not to always be `Copy`.
-
Hi, see below for an explanation and a patchfile with the code.
Store the slot map cache in a WeakHashMap so that it does not need to be recreated every time.
There will be no memory leak - the obje…
-
The [`Key` struct](https://github.com/maciejhirsz/json-rust/blob/0775592d339002ab148185264970c2a6e30b5d37/src/object.rs#L52) is currently initialized in two phases. First it is created, like this:
…
-
## Overview
This is a _feature request_ for an additional safety net for the use-case when Java passes pointers to native objects to the native code.
Consider the following code:
```java
// An e…
-
The abundance of `String`-typed objects passed around makes it more difficult to navigate the project.
-
### Problem
Take a project directory structure like this:
```
.
├── Cargo.lock
├── Cargo.toml
├── examples
│ └── grid
│ ├── Cargo.toml
│ └── src
│ └── main.rs
└── …