Skip to main content

data_unwrap

Macro data_unwrap 

Source
macro_rules! data_unwrap {
    ($data:expr) => { ... };
}
Expand description

data_unwrap!() safely unwraps a Data struct into a Document value.

If the Data is failed or empty, the data is immediately returned. Because of this, this macro can only be used in functions that return Data.