pub enum SlideLayout {
Show 13 variants
Cover,
Title,
Section,
Bullets,
Cards,
Compare,
Stat,
Quote,
Demo,
Image,
Two,
Code,
Blank,
}Expand description
Layout of a single slide in a ::deck.
A fixed set of presentation arrangements — the escape hatch for anything
outside this set is a per-slide ::style block, not a new layout. This
keeps slides expressive without trying to be Figma.
Variants§
Cover
Title/opening slide with large headline.
Title
Title-only slide.
Section
Section divider.
Bullets
Default body slide — bulleted content.
Cards
Card grid (maps to ::features).
Compare
Side-by-side comparison (maps to ::comparison).
Stat
Single big statistic (maps to ::stats).
Quote
Pull-quote slide (maps to ::quote).
Demo
Live-demo / terminal slide.
Image
Full-bleed image.
Two
Two-column split.
Code
Code-focused slide (monospace, full-bleed code block).
Blank
Empty canvas — content controls itself.
Implementations§
Trait Implementations§
Source§impl Clone for SlideLayout
impl Clone for SlideLayout
Source§fn clone(&self) -> SlideLayout
fn clone(&self) -> SlideLayout
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 SlideLayout
Source§impl Debug for SlideLayout
impl Debug for SlideLayout
Source§impl Default for SlideLayout
impl Default for SlideLayout
Source§fn default() -> SlideLayout
fn default() -> SlideLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlideLayout
impl<'de> Deserialize<'de> for SlideLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SlideLayout
Source§impl PartialEq for SlideLayout
impl PartialEq for SlideLayout
Source§impl Serialize for SlideLayout
impl Serialize for SlideLayout
impl StructuralPartialEq for SlideLayout
Auto Trait Implementations§
impl Freeze for SlideLayout
impl RefUnwindSafe for SlideLayout
impl Send for SlideLayout
impl Sync for SlideLayout
impl Unpin for SlideLayout
impl UnsafeUnpin for SlideLayout
impl UnwindSafe for SlideLayout
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.