pub struct AttrName {
pub namespace: Option<String>,
pub name: String,
pub id: Option<ResourceId>,
}Expand description
An attribute’s qualified name.
Framework attributes (android:*) carry their resource ID, which is what
Android actually matches on.
Fields§
§namespace: Option<String>§name: String§id: Option<ResourceId>Implementations§
Source§impl AttrName
impl AttrName
Sourcepub fn android_def(&self) -> Option<&'static AttrDef>
pub fn android_def(&self) -> Option<&'static AttrDef>
The framework attribute this name refers to, if it is public.
Sourcepub fn resource_id(&self) -> Option<ResourceId>
pub fn resource_id(&self) -> Option<ResourceId>
The resource ID Android matches this attribute by, if it has one.
Trait Implementations§
impl Eq for AttrName
Source§impl Ord for AttrName
impl Ord for AttrName
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for AttrName
impl PartialOrd for AttrName
impl StructuralPartialEq for AttrName
Auto Trait Implementations§
impl Freeze for AttrName
impl RefUnwindSafe for AttrName
impl Send for AttrName
impl Sync for AttrName
impl Unpin for AttrName
impl UnsafeUnpin for AttrName
impl UnwindSafe for AttrName
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.