Skip to main content

with_default_collation

Function with_default_collation 

Source
pub fn with_default_collation<R>(
    uri: Option<String>,
    f: impl FnOnce() -> R,
) -> R
Expand description

Run f with uri installed as the in-scope default-collation URI, restoring the previous value on return (including on panic). Caller is responsible for picking the right URI from the compiled expression’s static context.