Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

prelude.rs 937 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  1. pub use std::path::{Path, PathBuf};
  2. pub use std::borrow::Cow;
  3. pub use std::convert::{TryFrom, TryInto};
  4. pub use anyhow::{Result, Error, anyhow};
  5. pub use log::*;
  6. pub use clap::Args;
  7. pub use fallible_iterator::FallibleIterator;
  8. pub use arrow2_convert::ArrowField;
  9. pub use crate::io::LineProcessor;
  10. pub use crate::io::ObjectWriter;
  11. pub use crate::io::DataSink;
  12. pub use crate::io::path_list;
  13. pub use crate::io::file_size;
  14. pub use crate::io::ext::LengthRead;
  15. pub use crate::json_from_str;
  16. pub use crate::util::Timer;
  17. pub use crate::util::default;
  18. pub use crate::layout::*;
  19. pub use crate::arrow::polars::save_df_parquet;
  20. pub use crate::cli::Command;
  21. /// Macro to implement FromStr using JSON.
  22. #[macro_export]
  23. macro_rules! json_from_str {
  24. ($name:ident) => {
  25. impl FromStr for $name {
  26. type Err = serde_json::Error;
  27. fn from_str(s: &str) -> serde_json::Result<$name> {
  28. return serde_json::from_str(s)
  29. }
  30. }
  31. }
  32. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...