#[rustfmt::skip] // This file has been automatically generated by `jnim` from `LayoutInflaterFactory2.class`. // DO NOT EDIT use jnim::*; use crate::android::view::LayoutInflaterFactory; pub trait LayoutInflaterFactory2: AsRef + LayoutInflaterFactory { fn layout_inflater_factory2_class(env: Option<&JEnv>) -> Option { const NAME: &'static [u8] = b"android/view/LayoutInflater$Factory2\0"; static CACHE: CachedID = CachedID::new(); CACHE.get(|| JEnv::env(env)?.find_class(NAME)) } } pub struct LayoutInflaterFactory2Object { __object: JObject, } impl LayoutInflaterFactory2 for LayoutInflaterFactory2Object {} impl JNameMaker for LayoutInflaterFactory2Object { const JAVA_PATH: &'static [u8] = b"android/view/LayoutInflater$Factory2\0"; } impl JPlainMarker for LayoutInflaterFactory2Object { fn class(env: Option<&JEnv>) -> Option { static CACHE: CachedID = CachedID::new(); CACHE.get(|| JEnv::env(env)?.find_class(Self::JAVA_PATH)) } } impl core::ops::Deref for LayoutInflaterFactory2Object { type Target = JObject; fn deref(&self) -> &Self::Target { &self.__object } } impl AsRef for LayoutInflaterFactory2Object { fn as_ref(&self) -> &JObject { &self.__object } } impl LayoutInflaterFactory for LayoutInflaterFactory2Object {} #[test] fn test_type_zero() { assert_eq!(0, std::mem::size_of::()); }