pub struct SectionList {
pub items: Vec<Section>,
}Expand description
章节列表(<p14:sectionLst>)。
在 crate::oxml::presentation::PresentationRoot 中以 sections 字段
携带,写路径在 <p:extLst> 内展开为 <p14:sectionLst>。
§序列化
空列表时不输出任何内容(保持 presentation.xml 干净)。
Fields§
§items: Vec<Section>所有章节(按文档顺序)。
Implementations§
Source§impl SectionList
impl SectionList
Sourcepub fn section_name_of(&self, slide_id: u32) -> Option<&str>
pub fn section_name_of(&self, slide_id: u32) -> Option<&str>
按 slide id 查询所属章节名。
同一个 slide id 理论上不应出现在多个 section 内; 若被多次追加,返回第一个匹配的章节名。
Trait Implementations§
Source§impl Clone for SectionList
impl Clone for SectionList
Source§fn clone(&self) -> SectionList
fn clone(&self) -> SectionList
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 SectionList
impl Debug for SectionList
Source§impl Default for SectionList
impl Default for SectionList
Source§fn default() -> SectionList
fn default() -> SectionList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SectionList
impl RefUnwindSafe for SectionList
impl Send for SectionList
impl Sync for SectionList
impl Unpin for SectionList
impl UnsafeUnpin for SectionList
impl UnwindSafe for SectionList
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