Skip to content

Commit 4a59e7e

Browse files
committed
Docs: Update types docs regarding Box and Arc
1 parent b4ffe3f commit 4a59e7e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/source/data-types/data-types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Database types and their Rust equivalents:
1616
* `BigInt` <----> `i64`
1717
* `Float` <----> `f32`
1818
* `Double` <----> `f64`
19-
* `Ascii`, `Text`, `Varchar` <----> `&str`, `String`
19+
* `Ascii`, `Text`, `Varchar` <----> `&str`, `String`, `Box<str>`, `Arc<str>`
2020
* `Counter` <----> `value::Counter`
2121
* `Blob` <----> `Vec<u8>`
2222
* `Inet` <----> `std::net::IpAddr`
@@ -35,6 +35,7 @@ Database types and their Rust equivalents:
3535
* `UDT (User defined type)` <----> Custom user structs with macros
3636
* `Vector` <----> `Vec<T>`
3737

38+
Additionally, `Box` and `Arc` serialization and deserialization is supported for all above types.
3839

3940
```{eval-rst}
4041
.. toctree::

docs/source/data-types/text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ascii, Text, Varchar
2-
`Ascii`, `Text` and `Varchar` are represented as `&str` and `String`
2+
`Ascii`, `Text` and `Varchar` are represented as any of: `&str`, `String`, `Box<str>`, `Arc<str>`.
33

44
```rust
55
# extern crate scylla;
@@ -30,4 +30,4 @@ while let Some((text_value,)) = iter.try_next().await? {
3030
}
3131
# Ok(())
3232
# }
33-
```
33+
```

0 commit comments

Comments
 (0)