You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a specific reason ordered module is private?
This makes convenient macros such as try! unusable.
For example:
use bson::Document;fnset_and_get_age() -> Result<i32,MyCustomError>{letmut doc = Document::new();
doc.insert("age".to_string(),32asi32);let value = try!(doc.get_i32("age"));Ok(value)}
This code does not compile because MyCustomError does not implement From<bson::ordered::ValueAccessError>. You can't provide a custom impl for From, because the module is private.
The text was updated successfully, but these errors were encountered:
Is there a specific reason
ordered
module is private?This makes convenient macros such as
try!
unusable.For example:
This code does not compile because
MyCustomError
does not implementFrom<bson::ordered::ValueAccessError>
. You can't provide a custom impl for From, because the module is private.The text was updated successfully, but these errors were encountered: