droid_wrap

Trait JType

Source
pub trait JType: JObjRef + JObjNew {
    type Error;

    const CLASS: &'static str;
    const OBJECT_SIG: &'static str;
    const DIM: u8 = 0u8;
}
Expand description

用于描述java类的信息。

Required Associated Constants§

Source

const CLASS: &'static str

java类的名称。

Source

const OBJECT_SIG: &'static str

对象的签名描述。

Provided Associated Constants§

Source

const DIM: u8 = 0u8

数组维度,0表示不是数组

Required Associated Types§

Source

type Error

错误类型。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl JType for &[u8]

Source§

const CLASS: &'static str = "B"

Source§

const OBJECT_SIG: &'static str = "B"

Source§

const DIM: u8 = 1u8

Source§

type Error = <String as JType>::Error

Source§

impl JType for &[String]

Source§

const CLASS: &'static str = <String as JType>::CLASS

Source§

const OBJECT_SIG: &'static str = <String as JType>::OBJECT_SIG

Source§

const DIM: u8 = 1u8

Source§

type Error = <String as JType>::Error

Source§

impl JType for String

Source§

const CLASS: &'static str = "java/lang/String"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/String;"

Source§

type Error = Error

Source§

impl<T: JType> JType for Rc<T>

Source§

const CLASS: &'static str = T::CLASS

Source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

Source§

type Error = <T as JType>::Error

Source§

impl<T: JType> JType for Arc<T>

Source§

const CLASS: &'static str = T::CLASS

Source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

Source§

type Error = <T as JType>::Error

Source§

impl<T: JType> JType for Mutex<T>

Source§

const CLASS: &'static str = T::CLASS

Source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

Source§

type Error = <T as JType>::Error

Implementors§

Source§

impl JType for Activity

Source§

const CLASS: &'static str = "android/app/Activity"

Source§

const OBJECT_SIG: &'static str = "Landroid/app/Activity;"

Source§

type Error = Error

Source§

impl JType for PackageManager

Source§

const CLASS: &'static str = "android/content/pm/PackageManager"

Source§

const OBJECT_SIG: &'static str = "Landroid/content/pm/PackageManager;"

Source§

type Error = Error

Source§

impl JType for ComponentName

Source§

const CLASS: &'static str = "android/content/ComponentName"

Source§

const OBJECT_SIG: &'static str = "Landroid/content/ComponentName;"

Source§

type Error = Error

Source§

impl JType for Context

Source§

const CLASS: &'static str = "android/content/Context"

Source§

const OBJECT_SIG: &'static str = "Landroid/content/Context;"

Source§

type Error = Error

Source§

impl JType for ContextWrapper

Source§

const CLASS: &'static str = "android/content/ContextWrapper"

Source§

const OBJECT_SIG: &'static str = "Landroid/content/ContextWrapper;"

Source§

type Error = Error

Source§

impl JType for Intent

Source§

const CLASS: &'static str = "android/content/Intent"

Source§

const OBJECT_SIG: &'static str = "Landroid/content/Intent;"

Source§

type Error = Error

Source§

impl JType for Canvas

Source§

const CLASS: &'static str = "android/graphics/Canvas"

Source§

const OBJECT_SIG: &'static str = "Landroid/graphics/Canvas;"

Source§

type Error = Error

Source§

impl JType for Point

Source§

const CLASS: &'static str = "android/graphics/Point"

Source§

const OBJECT_SIG: &'static str = "Landroid/graphics/Point;"

Source§

type Error = Error

Source§

impl JType for Rect

Source§

const CLASS: &'static str = "android/graphics/Rect"

Source§

const OBJECT_SIG: &'static str = "Landroid/graphics/Rect;"

Source§

type Error = Error

Source§

impl JType for SurfaceTexture

Source§

const CLASS: &'static str = "android/graphics/SurfaceTexture"

Source§

const OBJECT_SIG: &'static str = "Landroid/graphics/SurfaceTexture;"

Source§

type Error = Error

Source§

impl JType for Camera

Source§

const CLASS: &'static str = "android/hardware/Camera"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera;"

Source§

type Error = Error

Source§

impl JType for Camera_Area

Source§

const CLASS: &'static str = "android/hardware/Camera$Area"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$Area;"

Source§

type Error = Error

Source§

impl JType for Camera_CameraInfo

Source§

const CLASS: &'static str = "android/hardware/Camera$CameraInfo"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$CameraInfo;"

Source§

type Error = Error

Source§

impl JType for Camera_Face

Source§

const CLASS: &'static str = "android/hardware/Camera$Face"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$Face;"

Source§

type Error = Error

Source§

impl JType for Camera_Parameters

Source§

const CLASS: &'static str = "android/hardware/Camera$Parameters"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$Parameters;"

Source§

type Error = Error

Source§

impl JType for Camera_Size

Source§

const CLASS: &'static str = "android/hardware/Camera$Size"

Source§

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$Size;"

Source§

type Error = Error

Source§

impl JType for AudioManager

Source§

const CLASS: &'static str = "android/media/AudioManager"

Source§

const OBJECT_SIG: &'static str = "Landroid/media/AudioManager;"

Source§

type Error = Error

Source§

impl JType for Build

Source§

const CLASS: &'static str = "android/os/Build"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/Build;"

Source§

type Error = Error

Source§

impl JType for Build_VERSION

Source§

const CLASS: &'static str = "android/os/Build$VERSION"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION;"

Source§

type Error = Error

Source§

impl JType for Build_VERSION_CODES

Source§

const CLASS: &'static str = "android/os/Build$VERSION_CODES"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION_CODES;"

Source§

type Error = Error

Source§

impl JType for Bundle

Source§

const CLASS: &'static str = "android/os/Bundle"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/Bundle;"

Source§

type Error = Error

Source§

impl JType for SystemProperties

Source§

const CLASS: &'static str = "android/os/SystemProperties"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties;"

Source§

type Error = Error

Source§

impl JType for SystemProperties_Handle

Source§

const CLASS: &'static str = "android/os/SystemProperties_Handle"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties_Handle;"

Source§

type Error = Error

Source§

impl JType for VibrationEffect

Source§

const CLASS: &'static str = "android/os/VibrationEffect"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/VibrationEffect;"

Source§

type Error = Error

Source§

impl JType for Vibrator

Source§

const CLASS: &'static str = "android/os/Vibrator"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/Vibrator;"

Source§

type Error = Error

Source§

impl JType for VibratorManager

Source§

const CLASS: &'static str = "android/os/VibratorManager"

Source§

const OBJECT_SIG: &'static str = "Landroid/os/VibratorManager;"

Source§

type Error = Error

Source§

impl JType for Allocation

Source§

const CLASS: &'static str = "android/renderscript/Allocation"

Source§

const OBJECT_SIG: &'static str = "Landroid/renderscript/Allocation;"

Source§

type Error = Error

Source§

impl JType for RenderScript

Source§

const CLASS: &'static str = "android/renderscript/RenderScript"

Source§

const OBJECT_SIG: &'static str = "Landroid/renderscript/RenderScript;"

Source§

type Error = Error

Source§

impl JType for TextToSpeech

Source§

const CLASS: &'static str = "android/speech/tts/TextToSpeech"

Source§

const OBJECT_SIG: &'static str = "Landroid/speech/tts/TextToSpeech;"

Source§

type Error = Error

Source§

impl JType for Manifest_permission

Source§

const CLASS: &'static str = "android/Manifest$permission"

Source§

const OBJECT_SIG: &'static str = "Landroid/Manifest$permission;"

Source§

type Error = Error

Source§

impl JType for EditorInfo

Source§

const CLASS: &'static str = "android/view/inputmethod/EditorInfo"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/EditorInfo;"

Source§

type Error = Error

Source§

impl JType for InputMethodManager

Source§

const CLASS: &'static str = "android/view/inputmethod/InputMethodManager"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/InputMethodManager;"

Source§

type Error = Error

Source§

impl JType for ContextThemeWrapper

Source§

const CLASS: &'static str = "android/view/ContextThemeWrapper"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/ContextThemeWrapper;"

Source§

type Error = Error

Source§

impl JType for Display

Source§

const CLASS: &'static str = "android/view/Display"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/Display;"

Source§

type Error = Error

Source§

impl JType for InputEvent

Source§

const CLASS: &'static str = "android/view/InputEvent"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/InputEvent;"

Source§

type Error = Error

Source§

impl JType for KeyEvent

Source§

const CLASS: &'static str = "android/view/KeyEvent"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/KeyEvent;"

Source§

type Error = Error

Source§

impl JType for Surface

Source§

const CLASS: &'static str = "android/view/Surface"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/Surface;"

Source§

type Error = Error

Source§

impl JType for View

Source§

const CLASS: &'static str = "android/view/View"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/View;"

Source§

type Error = Error

Source§

impl JType for ViewGroup

Source§

const CLASS: &'static str = "android/view/ViewGroup"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup;"

Source§

type Error = Error

Source§

impl JType for ViewGroup_LayoutParams

Source§

const CLASS: &'static str = "android/view/ViewGroup$LayoutParams"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$LayoutParams;"

Source§

type Error = Error

Source§

impl JType for ViewGroup_MarginLayoutParams

Source§

const CLASS: &'static str = "android/view/ViewGroup$MarginLayoutParams"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$MarginLayoutParams;"

Source§

type Error = Error

Source§

impl JType for Window

Source§

const CLASS: &'static str = "android/view/Window"

Source§

const OBJECT_SIG: &'static str = "Landroid/view/Window;"

Source§

type Error = Error

Source§

impl JType for Button

Source§

const CLASS: &'static str = "android/widget/Button"

Source§

const OBJECT_SIG: &'static str = "Landroid/widget/Button;"

Source§

type Error = Error

Source§

impl JType for EditText

Source§

const CLASS: &'static str = "android/widget/EditText"

Source§

const OBJECT_SIG: &'static str = "Landroid/widget/EditText;"

Source§

type Error = Error

Source§

impl JType for LinearLayout

Source§

const CLASS: &'static str = "android/widget/LinearLayout"

Source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout;"

Source§

type Error = Error

Source§

impl JType for LinearLayout_LayoutParams

Source§

const CLASS: &'static str = "android/widget/LinearLayout$LayoutParams"

Source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout$LayoutParams;"

Source§

type Error = Error

Source§

impl JType for TextView

Source§

const CLASS: &'static str = "android/widget/TextView"

Source§

const OBJECT_SIG: &'static str = "Landroid/widget/TextView;"

Source§

type Error = Error

Source§

impl JType for DexClassLoader

Source§

const CLASS: &'static str = "dalvik/system/DexClassLoader"

Source§

const OBJECT_SIG: &'static str = "Ldalvik/system/DexClassLoader;"

Source§

type Error = Error

Source§

impl JType for InMemoryDexClassLoader

Source§

const CLASS: &'static str = "dalvik/system/InMemoryDexClassLoader"

Source§

const OBJECT_SIG: &'static str = "Ldalvik/system/InMemoryDexClassLoader;"

Source§

type Error = Error

Source§

impl JType for File

Source§

const CLASS: &'static str = "java/io/File"

Source§

const OBJECT_SIG: &'static str = "Ljava/io/File;"

Source§

type Error = Error

Source§

impl JType for Executable

Source§

const CLASS: &'static str = "java/lang/reflect/Executable"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Executable;"

Source§

type Error = Error

Source§

impl JType for Method

Source§

const CLASS: &'static str = "java/lang/reflect/Method"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Method;"

Source§

type Error = Error

Source§

impl JType for Boolean

Source§

const CLASS: &'static str = "java/lang/Boolean"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/Boolean;"

Source§

type Error = Error

Source§

impl JType for ClassLoader

Source§

const CLASS: &'static str = "java/lang/ClassLoader"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/ClassLoader;"

Source§

type Error = Error

Source§

impl JType for Float

Source§

const CLASS: &'static str = "java/lang/Float"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/Float;"

Source§

type Error = Error

Source§

impl JType for Integer

Source§

const CLASS: &'static str = "java/lang/Integer"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/Integer;"

Source§

type Error = Error

Source§

impl JType for Object

Source§

const CLASS: &'static str = "java/lang/Object"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/Object;"

Source§

type Error = Error

Source§

impl JType for System

Source§

const CLASS: &'static str = "java/lang/System"

Source§

const OBJECT_SIG: &'static str = "Ljava/lang/System;"

Source§

type Error = Error

Source§

impl JType for ByteBuffer

Source§

const CLASS: &'static str = "java/nio/ByteBuffer"

Source§

const OBJECT_SIG: &'static str = "Ljava/nio/ByteBuffer;"

Source§

type Error = Error