pub enum MipmapOrDrawableResource {
Mipmap(Resource<MipmapResource>),
Drawable(Resource<DrawableResource>),
}
Expand description
Enum used when the value can be string resource or just a row string.
Variants§
Mipmap(Resource<MipmapResource>)
Drawable(Resource<DrawableResource>)
Implementations§
Trait Implementations§
source§impl Clone for MipmapOrDrawableResource
impl Clone for MipmapOrDrawableResource
source§fn clone(&self) -> MipmapOrDrawableResource
fn clone(&self) -> MipmapOrDrawableResource
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 MipmapOrDrawableResource
impl Debug for MipmapOrDrawableResource
source§impl<'de> Deserialize<'de> for MipmapOrDrawableResource
impl<'de> Deserialize<'de> for MipmapOrDrawableResource
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<MipmapOrDrawableResource> for MipmapOrDrawableResource
impl PartialEq<MipmapOrDrawableResource> for MipmapOrDrawableResource
source§fn eq(&self, other: &MipmapOrDrawableResource) -> bool
fn eq(&self, other: &MipmapOrDrawableResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MipmapOrDrawableResource
impl Serialize for MipmapOrDrawableResource
source§impl ToString for MipmapOrDrawableResource
impl ToString for MipmapOrDrawableResource
source§impl YaDeserialize for MipmapOrDrawableResource
impl YaDeserialize for MipmapOrDrawableResource
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for MipmapOrDrawableResource
impl YaSerialize for MipmapOrDrawableResource
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 MipmapOrDrawableResource
impl StructuralEq for MipmapOrDrawableResource
impl StructuralPartialEq for MipmapOrDrawableResource
Auto Trait Implementations§
impl RefUnwindSafe for MipmapOrDrawableResource
impl Send for MipmapOrDrawableResource
impl Sync for MipmapOrDrawableResource
impl Unpin for MipmapOrDrawableResource
impl UnwindSafe for MipmapOrDrawableResource
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