#[non_exhaustive]pub enum ResourceType {
Show 23 variants
Anim,
Animator,
Array,
Attr,
Bool,
Color,
Dimen,
Drawable,
Font,
Fraction,
Id,
Integer,
Interpolator,
Layout,
Menu,
Mipmap,
Navigation,
Plurals,
Raw,
String,
Style,
Transition,
Xml,
}Expand description
An Android resource type, the type in @type/name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Anim
Animator
Array
Attr
Bool
Color
Dimen
Drawable
Font
Fraction
Id
Integer
Interpolator
Layout
Menu
Mipmap
Plurals
Raw
String
Style
Transition
Xml
Implementations§
Source§impl ResourceType
impl ResourceType
Sourcepub fn is_file_type(self) -> bool
pub fn is_file_type(self) -> bool
Whether resources of this type are files under res/.
Trait Implementations§
Source§impl Clone for ResourceType
impl Clone for ResourceType
impl Copy for ResourceType
Source§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl Display for ResourceType
impl Display for ResourceType
impl Eq for ResourceType
Source§impl FromStr for ResourceType
impl FromStr for ResourceType
Source§impl Hash for ResourceType
impl Hash for ResourceType
Source§impl Ord for ResourceType
impl Ord for ResourceType
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 PartialEq for ResourceType
impl PartialEq for ResourceType
Source§impl PartialOrd for ResourceType
impl PartialOrd for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnsafeUnpin for ResourceType
impl UnwindSafe for ResourceType
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<T> CustomError for T
impl<T> CustomError for T
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.