from_error_scope

Crates.iofrom_error_scope
lib.rsfrom_error_scope
version0.0.1
sourcesrc
created_at2015-02-15 12:20:26.206506
updated_at2015-12-11 23:58:51.47213
descriptionEnable scoped conversion between non-local Error types
homepage
repositoryhttps://github.com/hugoduncan/from-error-scope
max_upload_size
id1407
size16,734
Hugo Duncan (hugoduncan)

documentation

http://hugoduncan.github.io/from-error-scope/from_error_scope/index.html

README

from_error_scope

Enable conversion between non-local Error types.

When using libraries, your code often needs to convert between Error types which aren't part of your local crate. In this case you can't implement std::error::FromError.

This is also useful if you need context dependent translation of error types.

Documentation

Usage

Add from_error_scope to your dependencies:

[dependencies]
from_error_scope = "*"

License

Copyright 2015 Hugo Duncan

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Commit count: 1

cargo fmt