Enum dex::encoded_value::EncodedValue[][src]

pub enum EncodedValue {
Show variants Byte(byte), Short(short), Char(ushort), Int(int), Long(long), Type(Type), Float(f32), Double(f64), MethodType(ProtoIdItem), MethodHandle(MethodHandleItem), String(DexString), Field(FieldIdItem), Method(MethodIdItem), Annotation(EncodedAnnotation), Array(Vec<EncodedValue>), Enum(FieldIdItem), Null, Boolean(bool),
}
Expand description

Used to represent values of fields, annotations etc. Android docs

Variants

Byte(byte)
Short(short)
Char(ushort)
Int(int)
Long(long)
Type(Type)
Float(f32)
Double(f64)
MethodType(ProtoIdItem)
MethodHandle(MethodHandleItem)
String(DexString)
Method(MethodIdItem)
Annotation(EncodedAnnotation)
Null
Boolean(bool)

Implementations

impl EncodedValue[src]

pub fn is_byte(&self) -> bool[src]

Returns true if the value is a byte

pub fn is_short(&self) -> bool[src]

Returns true if the value is a short

pub fn is_char(&self) -> bool[src]

Returns true if the value is a char

pub fn is_int(&self) -> bool[src]

Returns true if the value is a int

pub fn is_long(&self) -> bool[src]

Returns true if the value is a long

pub fn is_type(&self) -> bool[src]

Returns true if the value is a Type

pub fn is_float(&self) -> bool[src]

Returns true if the value is a float

pub fn is_double(&self) -> bool[src]

Returns true if the value is a double

pub fn is_method_handle(&self) -> bool[src]

Returns true if the value is a method handle

pub fn is_method_type(&self) -> bool[src]

Returns true if the value is a method type

pub fn is_string(&self) -> bool[src]

Returns true if the value is a string

pub fn is_field(&self) -> bool[src]

Returns true if the value is a field

pub fn is_method(&self) -> bool[src]

Returns true if the value is a method

pub fn is_annotation(&self) -> bool[src]

Returns true if the value is a annotation

pub fn is_array(&self) -> bool[src]

Returns true if the value is an array

pub fn is_enum(&self) -> bool[src]

Returns true if the value is an enum

pub fn is_bool(&self) -> bool[src]

Returns true if the value is a bool

pub fn is_null(&self) -> bool[src]

Returns true if the value is null

Trait Implementations

impl Debug for EncodedValue[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<DexString> for EncodedValue[src]

fn eq(&self, other: &DexString) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<EncodedValue> for EncodedValue[src]

fn eq(&self, other: &EncodedValue) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &EncodedValue) -> bool[src]

This method tests for !=.

impl PartialEq<Type> for EncodedValue[src]

fn eq(&self, other: &Type) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<bool> for EncodedValue[src]

fn eq(&self, other: &bool) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f32> for EncodedValue[src]

fn eq(&self, other: &f32) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f64> for EncodedValue[src]

fn eq(&self, other: &f64) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i16> for EncodedValue[src]

fn eq(&self, other: &short) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i32> for EncodedValue[src]

fn eq(&self, other: &int) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i64> for EncodedValue[src]

fn eq(&self, other: &long) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i8> for EncodedValue[src]

fn eq(&self, other: &byte) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<str> for EncodedValue[src]

fn eq(&self, other: &str) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u16> for EncodedValue[src]

fn eq(&self, other: &ushort) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a, S> TryFromCtx<'a, &'_ Dex<S>, [u8]> for EncodedValue where
    S: AsRef<[u8]>, 
[src]

type Error = Error

type Size = usize

fn try_from_ctx(source: &'a [u8], dex: &Dex<S>) -> Result<(Self, Self::Size)>[src]

impl StructuralPartialEq for EncodedValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.