pub struct NotesMasters { /* private fields */ }Expand description
全部备注母版的集合。
在 crate::presentation::Presentation 中由 notes_masters 字段持有。
一个演示文稿通常只有 0 或 1 个备注母版。
Implementations§
Source§impl NotesMasters
impl NotesMasters
Sourcepub fn iter(&self) -> Iter<'_, NotesMasterRef>
pub fn iter(&self) -> Iter<'_, NotesMasterRef>
遍历所有备注母版引用。
Sourcepub fn get(&self, idx: usize) -> Option<&NotesMasterRef>
pub fn get(&self, idx: usize) -> Option<&NotesMasterRef>
按索引取不可变引用。
Sourcepub fn first(&self) -> Option<&NotesMasterRef>
pub fn first(&self) -> Option<&NotesMasterRef>
取第一个备注母版(演示文稿通常只有 1 个)。
None 表示该演示文稿无备注母版(Presentation::new 创建的空白文档无此 part)。
Sourcepub fn push(&mut self, master: NotesMasterRef)
pub fn push(&mut self, master: NotesMasterRef)
追加一个备注母版(仅内存模型;写路径暂未实现)。
Trait Implementations§
Source§impl Clone for NotesMasters
impl Clone for NotesMasters
Source§fn clone(&self) -> NotesMasters
fn clone(&self) -> NotesMasters
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 NotesMasters
impl Debug for NotesMasters
Source§impl Default for NotesMasters
impl Default for NotesMasters
Source§fn default() -> NotesMasters
fn default() -> NotesMasters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NotesMasters
impl !Send for NotesMasters
impl !Sync for NotesMasters
impl !UnwindSafe for NotesMasters
impl Freeze for NotesMasters
impl Unpin for NotesMasters
impl UnsafeUnpin for NotesMasters
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