summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Ciężarkiewicz <dpc@dpc.pw>2018-11-29 15:11:49 -0800
committerDawid Ciężarkiewicz <dpc@dpc.pw>2018-11-29 15:11:49 -0800
commite02a1d3319762350eb984eaaf545e96413ad4957 (patch)
tree578166891eab576c7e85f51fe586a2529a1bf076
parent650ebd229038dd4a62f407da6a3b53ff83621f42 (diff)
Re-export all traits from root module
So the user can do `use resiter::*` and be done with it. Discussion: #10
-rw-r--r--src/lib.rs14
-rw-r--r--src/prelude.rs1
2 files changed, 14 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 471f8fe..ab7f16e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -208,3 +208,17 @@ pub mod prelude;
pub mod unwrap;
mod util;
pub mod while_ok;
+
+pub use and_then_x::AndThenX;
+pub use errors::GetErrors;
+pub use filter_map_x::FilterMapX;
+pub use filter_x::FilterX;
+pub use flat_map_x::FlatMapX;
+pub use flatten_x::FlattenX;
+pub use map_x::MapX;
+pub use oks::GetOks;
+pub use onerr::OnErrDo;
+pub use onok::OnOkDo;
+pub use unwrap::UnwrapWithExt;
+pub use util::{GetErr, GetOk, Process};
+pub use while_ok::WhileOk;
diff --git a/src/prelude.rs b/src/prelude.rs
index 0926f24..01cfea7 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -14,4 +14,3 @@ pub use oks::*;
pub use onerr::*;
pub use onok::*;
pub use unwrap::*;
-