pub struct ResTableRef {
pub entry_index: u16,
pub type_index: u8,
pub package_index: u8,
}Expand description
This is a reference to a unique entry (a ResTable_entry structure) in a resource table. The value is structured as 0xpptteee, where pp is the package index, tt is the type index in that package, and eeee is the entry index in that type. The package and type values start a 1 for the first item, to help catch cases where they have been supplied.
Fields§
§entry_index: u16§type_index: u8§package_index: u8Implementations§
Trait Implementations§
Source§impl Clone for ResTableRef
impl Clone for ResTableRef
Source§fn clone(&self) -> ResTableRef
fn clone(&self) -> ResTableRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResTableRef
Source§impl Debug for ResTableRef
impl Debug for ResTableRef
Source§impl Default for ResTableRef
impl Default for ResTableRef
Source§fn default() -> ResTableRef
fn default() -> ResTableRef
Returns the “default value” for a type. Read more
Source§impl Display for ResTableRef
impl Display for ResTableRef
impl Eq for ResTableRef
Source§impl From<ResTableRef> for u32
impl From<ResTableRef> for u32
Source§fn from(value: ResTableRef) -> Self
fn from(value: ResTableRef) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ResTableRef
impl From<u32> for ResTableRef
Source§impl FromResValue for ResTableRef
impl FromResValue for ResTableRef
type Error = FromResValueError
fn from_res_value( value: ResValue, _string_pool: &StringPoolHandler, ) -> Result<Self, Self::Error>
Source§impl Hash for ResTableRef
impl Hash for ResTableRef
Source§impl IntoResValue for ResTableRef
impl IntoResValue for ResTableRef
fn into_res_value(self, _string_pool: &mut StringPoolHandler) -> ResValue
Source§impl Ord for ResTableRef
impl Ord for ResTableRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResTableRef
impl PartialEq for ResTableRef
Source§impl PartialOrd for ResTableRef
impl PartialOrd for ResTableRef
Source§impl Readable for ResTableRef
impl Readable for ResTableRef
impl StructuralPartialEq for ResTableRef
Auto Trait Implementations§
impl Freeze for ResTableRef
impl RefUnwindSafe for ResTableRef
impl Send for ResTableRef
impl Sync for ResTableRef
impl Unpin for ResTableRef
impl UnsafeUnpin for ResTableRef
impl UnwindSafe for ResTableRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more