pub struct SlideSection {
pub name: String,
pub first_slide: usize,
pub slide_count: usize,
}Expand description
A section that groups consecutive slides
Fields§
§name: String§first_slide: usize§slide_count: usizeImplementations§
Source§impl SlideSection
impl SlideSection
Sourcepub fn new(name: &str, first_slide: usize, slide_count: usize) -> Self
pub fn new(name: &str, first_slide: usize, slide_count: usize) -> Self
Create a new section starting at a given slide index (0-based)
Sourcepub fn last_slide(&self) -> usize
pub fn last_slide(&self) -> usize
Last slide index (inclusive, 0-based)
Sourcepub fn contains_slide(&self, slide_index: usize) -> bool
pub fn contains_slide(&self, slide_index: usize) -> bool
Check if a slide index belongs to this section
Trait Implementations§
Source§impl Clone for SlideSection
impl Clone for SlideSection
Source§fn clone(&self) -> SlideSection
fn clone(&self) -> SlideSection
Returns a duplicate of the value. Read more
1.0.0 · 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 SlideSection
impl Debug for SlideSection
Source§impl PartialEq for SlideSection
impl PartialEq for SlideSection
impl Eq for SlideSection
impl StructuralPartialEq for SlideSection
Auto Trait Implementations§
impl Freeze for SlideSection
impl RefUnwindSafe for SlideSection
impl Send for SlideSection
impl Sync for SlideSection
impl Unpin for SlideSection
impl UnwindSafe for SlideSection
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
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.