macro_rules! dart_unwrap {
($x: expr) => { ... };
}
Expand description
Unwraps a result, propagating the Dart error, should it be
present. This will never return if it happens to encounter
an Err(e)
variant.
ยงUsage
let my_list = List::new_data(vec![1u8, 2, 3, 4]);
let result = my_list.get_at(4);
let int = dart_unwrap!(result); // Oh noes! We got an error!
println!("{:?}", *int); // This will never run.