Struct ooxml::packaging::part::OpenXmlPart
source · pub struct OpenXmlPart { /* private fields */ }
Implementations§
source§impl OpenXmlPart
impl OpenXmlPart
pub fn from_reader<S: Into<PathBuf>, R: Read>( uri: S, reader: R ) -> Result<Self, OoxmlError>
pub fn new_with_content_type<S: Into<PathBuf>>( uri: S, content_type: impl Into<ContentType> ) -> Self
pub fn new<S: Into<PathBuf>, C: Into<ContentType>, R: Read>( uri: S, _content_type: C, reader: R ) -> Result<Self, OoxmlError>
pub fn as_part_bytes(&self) -> &[u8] ⓘ
pub fn content_type(&self) -> &Option<ContentType>
Trait Implementations§
source§impl Clone for OpenXmlPart
impl Clone for OpenXmlPart
source§fn clone(&self) -> OpenXmlPart
fn clone(&self) -> OpenXmlPart
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 OpenXmlPart
impl Debug for OpenXmlPart
source§impl Default for OpenXmlPart
impl Default for OpenXmlPart
source§fn default() -> OpenXmlPart
fn default() -> OpenXmlPart
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OpenXmlPart
impl Send for OpenXmlPart
impl Sync for OpenXmlPart
impl Unpin for OpenXmlPart
impl UnwindSafe for OpenXmlPart
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