Struct dex::jtype::Type [−][src]
pub struct Type { /* fields omitted */ }
Expand description
Represents a Java type. The type descriptor conforms to the syntax described here
Implementations
impl Type
[src]
impl Type
[src]pub fn type_descriptor(&self) -> &DexString
[src]
pub fn type_descriptor(&self) -> &DexString
[src]The type descriptor string for this string.
impl Type
[src]
impl Type
[src]pub fn is_primitive(&self) -> bool
[src]
pub fn is_primitive(&self) -> bool
[src]Returns true
if the type is primitive
pub fn is_reference(&self) -> bool
[src]
pub fn is_reference(&self) -> bool
[src]Returns true
if the type is an array or a class
pub fn array_dimensions(&self) -> Option<usize>
[src]
pub fn array_dimensions(&self) -> Option<usize>
[src]If the type represents an array, get it’s dimensions,
otherwise returns None
pub fn to_java_type(&self) -> String
[src]
pub fn to_java_type(&self) -> String
[src]Returns the Java representation of the Type
Trait Implementations
impl PartialEq<Type> for EncodedValue
[src]
impl PartialEq<Type> for EncodedValue
[src]Auto Trait Implementations
impl !RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more