Skip to content

Commit

Permalink
[unum] Implement the remaining methods from unum.h
Browse files Browse the repository at this point in the history
Not very swell with test coverage now, since most remaining methods are
getters and setters.

Some attempts at generalizing the getters and setters through macros,
with unremarkable results.

Issue google#141
  • Loading branch information
filmil committed Jul 17, 2020
1 parent de9c4b5 commit 333a7cd
Show file tree
Hide file tree
Showing 2 changed files with 360 additions and 21 deletions.
6 changes: 6 additions & 0 deletions rust_icu_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ impl From<std::string::FromUtf8Error> for Error {
}
}

impl From<anyhow::Error> for Error {
fn from(e: anyhow::Error) -> Self {
Self::wrapper(e)
}
}

impl Into<std::fmt::Error> for Error {
fn into(self) -> std::fmt::Error {
// It is not possible to transfer any info into std::fmt::Error, so we log instead.
Expand Down
Loading

0 comments on commit 333a7cd

Please sign in to comment.