[oden] IO: Load Strings

It's useful. The stock JS way is bad.
This commit is contained in:
John Doty 2023-07-08 17:55:37 -07:00
parent 89045ccbcc
commit 17c701a7d6
4 changed files with 42 additions and 3 deletions

View file

@ -77,6 +77,12 @@ impl From<std::io::Error> for Error {
}
}
impl From<std::str::Utf8Error> for Error {
fn from(e: std::str::Utf8Error) -> Self {
Error::ConversionError(e.to_string())
}
}
pub type Result<T> = core::result::Result<T, Error>;
pub type ValueResult = core::result::Result<Value, Error>;