Content-Length: 266800 | pFad | http://github.com/psqlpy-python/rust-postgres-array/commit/efac960f1696bdc81f0f8e7b8b4d0833322cd877

75 Added from_parts_with_err method to Array · psqlpy-python/rust-postgres-array@efac960 · GitHub
Skip to content

Commit efac960

Browse files
committed
Added from_parts_with_err method to Array
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
1 parent 6a74d3b commit efac960

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/array.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ impl<T> Array<T> {
8484
data: Vec<T>,
8585
dimensions: Vec<Dimension>,
8686
) -> Result<Array<T>, Error> {
87+
println!(
88+
"{:?}",
89+
data.len() as i32 == dimensions.iter().fold(1, |acc, i| acc * i.len)
90+
);
91+
println!("{:?}", data.len() as i32);
92+
println!("{:?}", dimensions.iter().fold(1, |acc, i| acc * i.len));
8793
if data.is_empty() && dimensions.is_empty()
8894
|| data.len() as i32 == dimensions.iter().fold(1, |acc, i| acc * i.len)
8995
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/psqlpy-python/rust-postgres-array/commit/efac960f1696bdc81f0f8e7b8b4d0833322cd877

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy