INNER CODE UNIT · Rust
as_flutter_locale
denialwm/denial · compositor/flutter-engine/src/lib.rs:541
fn as_flutter_locale(&self) -> sys::FlutterLocale {
sys::FlutterLocale {
struct_size: mem::size_of::<sys::FlutterLocale>(),
language_code: self.language_code.as_ptr(),
country_code: self
.country_code
.as_ref()
.map_or(ptr::null(), |value| value.as_ptr()),
script_code: self
.script_code
.as_ref()
.map_or(ptr::null(), |value| value.as_ptr()),
variant_code: self
.variant_code
.as_ref()
.map_or(ptr::null(), |value| value.as_ptr()),
}
}