1 unstable release

Uses old Rust 2015

0.0.1 Feb 15, 2015

#42 in #scoped

Apache-2.0

6KB
59 lines

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.

No runtime deps