pub struct Placeholder {
pub idx: u32,
pub ph_type: String,
pub name: String,
}Expand description
占位符(python-pptx slide_layout.placeholders[i] 风格)。
仅承载只读元数据;如需 mutate 形状本身,请用 SlideLayoutRef::shapes_mut
再按 ph_idx 过滤。
Fields§
§idx: u32占位符 idx(对应 <p:ph idx="N"/>)。
ph_type: String占位符类型(对应 <p:ph type="..."/>,如 title / body)。
name: String形状名(cNvPr name)。
Implementations§
Trait Implementations§
Source§impl Clone for Placeholder
impl Clone for Placeholder
Source§fn clone(&self) -> Placeholder
fn clone(&self) -> Placeholder
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 Freeze for Placeholder
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnsafeUnpin for Placeholder
impl UnwindSafe for Placeholder
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