Enum android_manifest::AnyResource
source · pub enum AnyResource {
String(Resource<StringResource>),
Drawable(Resource<DrawableResource>),
Xml(Resource<XmlResource>),
Style(Resource<StyleResource>),
}
Expand description
Enum used when the value can be any of available resources.
Variants§
String(Resource<StringResource>)
Drawable(Resource<DrawableResource>)
Xml(Resource<XmlResource>)
Style(Resource<StyleResource>)
Trait Implementations§
source§impl Clone for AnyResource
impl Clone for AnyResource
source§fn clone(&self) -> AnyResource
fn clone(&self) -> AnyResource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnyResource
impl Debug for AnyResource
source§impl<'de> Deserialize<'de> for AnyResource
impl<'de> Deserialize<'de> for AnyResource
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AnyResource> for AnyResource
impl PartialEq<AnyResource> for AnyResource
source§fn eq(&self, other: &AnyResource) -> bool
fn eq(&self, other: &AnyResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AnyResource
impl Serialize for AnyResource
source§impl YaDeserialize for AnyResource
impl YaDeserialize for AnyResource
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for AnyResource
impl YaSerialize for AnyResource
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for AnyResource
impl StructuralEq for AnyResource
impl StructuralPartialEq for AnyResource
Auto Trait Implementations§
impl RefUnwindSafe for AnyResource
impl Send for AnyResource
impl Sync for AnyResource
impl Unpin for AnyResource
impl UnwindSafe for AnyResource
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