-
What do you think of a RawValue type like in [serde_json](https://docs.serde.rs/serde_json/value/struct.RawValue.html)?
## Use case
I want to use it to deserialize a Torrent struct without having …
-
### Describe the bug
When I define my Rust structs, I use the `uuid::Uuid` type for the `id` field.
For some reason, the created document IDs cannot be deserialized to `uuid::Uuid`:
```
…
-
The checkpoint created by the [Python Delta Lake package](https://github.com/delta-io/delta-rs) cannot be read by Trino (Version 424).
Saw that the checkpoint parquet file created by the Python pac…
-
````rust
#[derive(Debug)]
struct S(String);
#[derive(Debug)]
struct T(S);
fn no_ref_nested() {
let mut t = T(S());
let c = || {
println!("{:?}", t.0);
let mut c …
-
### Code
(hand-reduced)
```Rust
#![feature(builtin_syntax)]
trait MyTrait {
type Iter;
fn unwrap_items(self) -> Self::Iter;
}
struct MyStruct {}
trait MyTrait MyTrait Un…
-
I'm working to add some codes to pest to support generating statically typed syntax tree in my [fork](https://github.com/theverydarkness/pest), and I'm going to make a pull request after fixing all bu…
-
The original problem is that my format is not completely self-describing because it does not encode field types, and I need to rely on the types to be inferred from the target struct when deserializin…
-
The specific case I'm running into that fails to round trip is serializes via [`Serializer::serialize_newtype_variant`](https://docs.serde.rs/serde/trait.Serializer.html#tymethod.serialize_newtype_var…
CAD97 updated
3 years ago
-
g4 file:
```
grammar CSV;
csvFile: hdr row+ ;
hdr : row ;
row : field (',' field)* '\r'? '\n' ;
field
: TEXT
| STRING
|
;
TEXT : ~[,\n\r"]+ ;
STRING : '"' ('""'…
-
# Problem
There is no way for a visitor to know if a pointer value it has received is:
1. Allocated.
2. Safe to use as part of the return value.
Thus, visitors are forced to play it safe and…