pub struct PptxTemplate { /* private fields */ }Expand description
Theme + master + layout parts cloned from an existing .pptx file.
Implementations§
Source§impl PptxTemplate
impl PptxTemplate
Sourcepub fn from_package(pkg: &Package) -> Result<Self>
pub fn from_package(pkg: &Package) -> Result<Self>
Extract template parts from an opened package.
pub fn layout_count(&self) -> usize
pub fn parts(&self) -> &HashMap<String, Vec<u8>>
pub fn has_layout(&self, n: usize) -> bool
Sourcepub fn resolve_layout_number(&self, requested: usize) -> usize
pub fn resolve_layout_number(&self, requested: usize) -> usize
Resolve layout index for a slide, capped to layouts available in the template.
Trait Implementations§
Source§impl Clone for PptxTemplate
impl Clone for PptxTemplate
Source§fn clone(&self) -> PptxTemplate
fn clone(&self) -> PptxTemplate
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 PptxTemplate
impl Debug for PptxTemplate
Source§impl Default for PptxTemplate
impl Default for PptxTemplate
Source§fn default() -> PptxTemplate
fn default() -> PptxTemplate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PptxTemplate
impl RefUnwindSafe for PptxTemplate
impl Send for PptxTemplate
impl Sync for PptxTemplate
impl Unpin for PptxTemplate
impl UnsafeUnpin for PptxTemplate
impl UnwindSafe for PptxTemplate
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