We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PgLTree::from
from_labels
From<Vec<PgLTreeLabel>>
1 parent 24317d5 commit 341ead0Copy full SHA for 341ead0
sqlx-postgres/src/types/ltree.rs
@@ -96,7 +96,7 @@ impl PgLTree {
96
}
97
98
/// creates ltree from a [`Vec<PgLTreeLabel>`]
99
- pub fn from(labels: Vec<PgLTreeLabel>) -> Self {
+ pub fn from_labels(labels: Vec<PgLTreeLabel>) -> Self {
100
Self { labels }
101
102
@@ -138,6 +138,12 @@ impl PgLTree {
138
139
140
141
+impl From<Vec<PgLTreeLabel>> for PgLTree {
142
+ fn from(labels: Vec<PgLTreeLabel>) -> Self {
143
+ Self { labels }
144
+ }
145
+}
146
+
147
impl FromIterator<PgLTreeLabel> for PgLTree {
148
fn from_iter<T: IntoIterator<Item = PgLTreeLabel>>(iter: T) -> Self {
149
Self {
0 commit comments