INNER CODE UNIT · Rust
variant_code
denialwm/denial · compositor/flutter-engine/src/lib.rs:537
pub fn variant_code(&self) -> Option<&CStr> {
self.variant_code.as_deref()
}
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