pub struct PreservedPart {
pub name: String,
pub content_type: String,
pub data: Arc<[u8]>,
pub rels: Vec<PreservedRel>,
}Expand description
A kept package part.
Fields§
§name: StringPart name in the source file (no leading /).
content_type: String§data: Arc<[u8]>§rels: Vec<PreservedRel>The part’s own relationships, ids unchanged (the part’s bytes refer to them).
Trait Implementations§
Source§impl Clone for PreservedPart
impl Clone for PreservedPart
Source§fn clone(&self) -> PreservedPart
fn clone(&self) -> PreservedPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreservedPart
impl Debug for PreservedPart
Source§impl Default for PreservedPart
impl Default for PreservedPart
Source§fn default() -> PreservedPart
fn default() -> PreservedPart
Returns the “default value” for a type. Read more
impl Eq for PreservedPart
Source§impl PartialEq for PreservedPart
impl PartialEq for PreservedPart
impl StructuralPartialEq for PreservedPart
Auto Trait Implementations§
impl Freeze for PreservedPart
impl RefUnwindSafe for PreservedPart
impl Send for PreservedPart
impl Sync for PreservedPart
impl Unpin for PreservedPart
impl UnsafeUnpin for PreservedPart
impl UnwindSafe for PreservedPart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.