pub enum PpPlaceholderType {
Show 16 variants
Title,
Body,
CenterTitle,
Subtitle,
Date,
SlideNumber,
Footer,
Header,
Object,
Chart,
Table,
ClipArt,
OrgChart,
MediaClip,
Picture,
Other,
}Expand description
占位符类型(PP_PLACEHOLDER)。
对标 python-pptx 中 pptx.enum.shapes.PP_PLACEHOLDER。
注意本枚举只覆盖常见的占位符类型;其它取值统一收为 PpPlaceholderType::Other。
Variants§
Title
标题。
Body
正文。
CenterTitle
中心文本。
Subtitle
子标题。
Date
日期。
SlideNumber
幻灯片编号。
页脚。
Header
页眉。
Object
对象(表格/图/…)。
Chart
图表。
Table
表格。
ClipArt
剪贴画。
OrgChart
组织结构图。
MediaClip
媒体剪辑。
Picture
图片占位符(pic,TODO-007)。
对应 PowerPoint “图片占位符”——版式中的 <p:ph type="pic"/>,
用户点击后弹出“插入图片“对话框。
Other
其它(任意未识别的 type 字符串)。
Implementations§
Trait Implementations§
Source§impl Clone for PpPlaceholderType
impl Clone for PpPlaceholderType
Source§fn clone(&self) -> PpPlaceholderType
fn clone(&self) -> PpPlaceholderType
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 moreimpl Copy for PpPlaceholderType
Source§impl Debug for PpPlaceholderType
impl Debug for PpPlaceholderType
impl Eq for PpPlaceholderType
Source§impl PartialEq for PpPlaceholderType
impl PartialEq for PpPlaceholderType
Source§fn eq(&self, other: &PpPlaceholderType) -> bool
fn eq(&self, other: &PpPlaceholderType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PpPlaceholderType
Auto Trait Implementations§
impl Freeze for PpPlaceholderType
impl RefUnwindSafe for PpPlaceholderType
impl Send for PpPlaceholderType
impl Sync for PpPlaceholderType
impl Unpin for PpPlaceholderType
impl UnsafeUnpin for PpPlaceholderType
impl UnwindSafe for PpPlaceholderType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.