Struct android_manifest::Resource
source · pub struct Resource<T: ResourceType> { /* private fields */ }
Expand description
Generic resource type.
Implementations§
Trait Implementations§
source§impl<'de, T: ResourceType> Deserialize<'de> for Resource<T>
impl<'de, T: ResourceType> Deserialize<'de> for Resource<T>
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<T: PartialEq + ResourceType> PartialEq<Resource<T>> for Resource<T>
impl<T: PartialEq + ResourceType> PartialEq<Resource<T>> for Resource<T>
source§impl<T: ResourceType> Serialize for Resource<T>
impl<T: ResourceType> Serialize for Resource<T>
source§impl<T: ResourceType> ToString for Resource<T>
impl<T: ResourceType> ToString for Resource<T>
source§impl<T: ResourceType> YaDeserialize for Resource<T>
impl<T: ResourceType> YaDeserialize for Resource<T>
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl<T: ResourceType> YaSerialize for Resource<T>
impl<T: ResourceType> YaSerialize for Resource<T>
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<T: Eq + ResourceType> Eq for Resource<T>
impl<T: ResourceType> StructuralEq for Resource<T>
impl<T: ResourceType> StructuralPartialEq for Resource<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Resource<T>where T: RefUnwindSafe,
impl<T> Send for Resource<T>where T: Send,
impl<T> Sync for Resource<T>where T: Sync,
impl<T> Unpin for Resource<T>where T: Unpin,
impl<T> UnwindSafe for Resource<T>where T: UnwindSafe,
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