pub struct NotesMasterRef { /* private fields */ }Expand description
单个备注母版引用(高阶句柄)。
与 crate::slide_masters::SlideMasterRef 同样使用 Rc<RefCell<OxmlNotesMaster>>
共享 oxml 模型,方便在多视图间共享且通过编译期借用检查。
Implementations§
Source§impl NotesMasterRef
impl NotesMasterRef
Sourcepub fn shapes(&self) -> Vec<OxmlSp>
pub fn shapes(&self) -> Vec<OxmlSp>
shape 不可变快照(python-pptx notes_master.shapes 风格)。
返回克隆后的形状列表,调用方可自由操作而不影响母版内部状态。
Sourcepub fn shapes_mut(&self) -> RefMut<'_, Vec<OxmlSp>>
pub fn shapes_mut(&self) -> RefMut<'_, Vec<OxmlSp>>
shape 可变视图(返回 RefMut)。
通过 RefMut 可以原地修改母版内的形状;修改不会自动持久化到
.pptx 文件(写路径暂未实现)。
Sourcepub fn background(&self) -> Option<SlideBackground>
pub fn background(&self) -> Option<SlideBackground>
读取备注母版背景。None 表示未设置独立背景。
Trait Implementations§
Source§impl Clone for NotesMasterRef
impl Clone for NotesMasterRef
Source§fn clone(&self) -> NotesMasterRef
fn clone(&self) -> NotesMasterRef
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for NotesMasterRef
impl !Send for NotesMasterRef
impl !Sync for NotesMasterRef
impl !UnwindSafe for NotesMasterRef
impl Freeze for NotesMasterRef
impl Unpin for NotesMasterRef
impl UnsafeUnpin for NotesMasterRef
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