from_error_scope 0.0.1

Enable scoped conversion between non-local Error types
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented1 out of 3 items with examples
  • Size
  • Source code size: 16.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Documentation
  • hugoduncan/from-error-scope
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hugoduncan

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.