Content-Length: 287932 | pFad | http://github.com/psqlpy-python/rust-postgres-array/commit/4c57ea4058d807fb2e8e1049cda51e277e31beb5
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.
1 parent 4cdeba3 commit 4c57ea4Copy full SHA for 4c57ea4
src/array.rs
@@ -147,7 +147,7 @@ impl<T> Array<T> {
147
148
//github.com/ Returns the underlying data vector for this Array in the
149
//github.com/ higher-dimensional equivalent of row-major order.
150
- pub fn extract(self) -> Vec<T> {
+ pub fn into_inner(self) -> Vec<T> {
151
self.data
152
}
153
src/lib.rs
@@ -49,9 +49,9 @@ mod tests {
49
50
51
#[test]
52
- fn test_extract() {
+ fn test_into_inner() {
53
let a = Array::from_vec(vec![0i32, 1, 2], -1);
54
- let a = a.extract();
+ let a = a.into_inner();
55
assert_eq!(a.len(), 3);
56
assert_eq!(0, a[0]);
57
assert_eq!(1, a[1]);
Fetched URL: http://github.com/psqlpy-python/rust-postgres-array/commit/4c57ea4058d807fb2e8e1049cda51e277e31beb5
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments