-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
39 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
/// Anyhow implementation on top of the 'rust_core' Result type. | ||
library anyhow; | ||
|
||
export 'base.dart' | ||
hide | ||
guard, | ||
guardAsync, | ||
guardAsyncResult, | ||
guardResult, | ||
Result, | ||
Ok, | ||
Err, | ||
FutureResult, | ||
ToOkExtension, | ||
ToErrExtension; | ||
export 'src/anyhow/anyhow_error.dart'; | ||
export 'src/anyhow/execute_protected.dart'; | ||
|
||
export 'package:rust/src/result/result.dart' show Ok, Err; | ||
export 'package:rust/src/result/guard.dart'; | ||
export 'package:rust/src/result/record_to_result_extensions.dart'; | ||
export 'package:rust/src/result/result_extensions.dart'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
part of 'anyhow_error.dart'; | ||
|
||
/// {@macro result} | ||
typedef BaseResult<S, F extends Object> = base.Result<S, F>; | ||
|
||
/// {@macro ok} | ||
typedef BaseOk<S, F extends Object> = base.Ok<S, F>; | ||
|
||
/// {@macro err} | ||
typedef BaseErr<S, F extends Object> = base.Err<S, F>; | ||
|
||
/// {@macro futureResult} | ||
typedef BaseFutureResult<S, F extends Object> = base.FutureResult<S, F>; | ||
|
||
/// {@macro futureResult} | ||
typedef FutureResult<S> = Future<Result<S>>; | ||
|
||
/// {@macro result} | ||
typedef Result<S> = BaseResult<S, Error>; | ||
|
||
/// {@macro ok} | ||
typedef Ok<S> = BaseOk<S, Error>; | ||
|
||
/// {@macro err} | ||
typedef Err<S> = BaseErr<S, Error>; | ||
typedef Result<S> = rust.Result<S, Error>; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.