pub struct SlideMasters { /* private fields */ }Expand description
全部母版的集合。
在 crate::presentation::Presentation 中由 slide_masters 字段持有。
至少包含 1 个默认母版(由 crate::presentation::Presentation::new 自动创建)。
Implementations§
Source§impl SlideMasters
impl SlideMasters
Sourcepub fn iter(&self) -> Iter<'_, SlideMasterRef>
pub fn iter(&self) -> Iter<'_, SlideMasterRef>
遍历所有母版引用。
Sourcepub fn get(&self, idx: usize) -> Option<&SlideMasterRef>
pub fn get(&self, idx: usize) -> Option<&SlideMasterRef>
按索引取不可变引用。
Sourcepub fn get_mut(&mut self, idx: usize) -> Option<&mut SlideMasterRef>
pub fn get_mut(&mut self, idx: usize) -> Option<&mut SlideMasterRef>
按索引取可变引用。
Sourcepub fn at(&self, idx: usize) -> Option<SlideMaster>
pub fn at(&self, idx: usize) -> Option<SlideMaster>
取一个母版(克隆为不可变轻量句柄 SlideMaster)。
当前实现是空结构体 —— 真正的母版内容编辑需要走 SlideMasterRef。
Sourcepub fn push(&mut self, master: SlideMasterRef)
pub fn push(&mut self, master: SlideMasterRef)
追加一个母版(仅内存模型;presentation::to_opc_package 会一并写出)。
Trait Implementations§
Source§impl Clone for SlideMasters
impl Clone for SlideMasters
Source§fn clone(&self) -> SlideMasters
fn clone(&self) -> SlideMasters
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 SlideMasters
impl Debug for SlideMasters
Source§impl Default for SlideMasters
impl Default for SlideMasters
Source§fn default() -> SlideMasters
fn default() -> SlideMasters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SlideMasters
impl !Send for SlideMasters
impl !Sync for SlideMasters
impl !UnwindSafe for SlideMasters
impl Freeze for SlideMasters
impl Unpin for SlideMasters
impl UnsafeUnpin for SlideMasters
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