pub struct PresentationEditor { /* private fields */ }Expand description
Presentation editor for modifying PPTX files
Implementations§
Source§impl PresentationEditor
impl PresentationEditor
Sourcepub fn slide_count(&self) -> usize
pub fn slide_count(&self) -> usize
Get number of slides
Sourcepub fn get_slide(&self, index: usize) -> Result<ParsedSlide, PptxError>
pub fn get_slide(&self, index: usize) -> Result<ParsedSlide, PptxError>
Get a parsed slide by index (0-based)
Sourcepub fn add_slide(&mut self, content: SlideContent) -> Result<usize, PptxError>
pub fn add_slide(&mut self, content: SlideContent) -> Result<usize, PptxError>
Add a new slide at the end
Sourcepub fn update_slide(
&mut self,
index: usize,
content: SlideContent,
) -> Result<(), PptxError>
pub fn update_slide( &mut self, index: usize, content: SlideContent, ) -> Result<(), PptxError>
Update slide content at index
Sourcepub fn package_mut(&mut self) -> &mut Package
pub fn package_mut(&mut self) -> &mut Package
Get mutable reference to package
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PresentationEditor
impl RefUnwindSafe for PresentationEditor
impl Send for PresentationEditor
impl Sync for PresentationEditor
impl Unpin for PresentationEditor
impl UnsafeUnpin for PresentationEditor
impl UnwindSafe for PresentationEditor
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