pub struct Reveal {
pub by: RevealUnit,
pub kind: Option<RevealKind>,
pub stagger: Option<f64>,
pub duration: Option<f64>,
pub distance: Option<f32>,
}Expand description
A text revealed a unit at a time. Each unit moves at a constant rate over duration.
Fields§
§by: RevealUnitThe unit: word (words holding a letter or digit) or line (laid-out lines).
kind: Option<RevealKind>How each unit appears: fade, or rise (fading in while moving up). Default fade.
stagger: Option<f64>Seconds between one unit’s start and the next’s. Default half the duration.
duration: Option<f64>Seconds each unit takes. Default: the theme’s fade length.
distance: Option<f32>How far a rise moves, in pixels. Default half the font size.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reveal
impl<'de> Deserialize<'de> for Reveal
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 StructuralPartialEq for Reveal
Auto Trait Implementations§
impl Freeze for Reveal
impl RefUnwindSafe for Reveal
impl Send for Reveal
impl Sync for Reveal
impl Unpin for Reveal
impl UnsafeUnpin for Reveal
impl UnwindSafe for Reveal
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