pub struct TypewriterPrint<T: Display>(pub T, pub Duration);Expand description
A command that prints the given displayable type, one character at a time.
§Examples
use clp::{slide, TypewriterPrint};
use std::time::Duration;
slide!(TypewriterPrint("Hello, world!", Duration::from_millis(25)))
.expect("each character of \"Hello, world!\" should be printed in 25ms intervals");§Notes
Commands must be executed/queued for execution
(which TypewriterPrint is when in slide)
otherwise they do nothing.
Tuple Fields§
§0: T§1: DurationTrait Implementations§
Source§impl<T: Clone + Display> Clone for TypewriterPrint<T>
impl<T: Clone + Display> Clone for TypewriterPrint<T>
Source§fn clone(&self) -> TypewriterPrint<T>
fn clone(&self) -> TypewriterPrint<T>
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<T: Display> Command for TypewriterPrint<T>
impl<T: Display> Command for TypewriterPrint<T>
Source§impl<T: Display> Display for TypewriterPrint<T>
impl<T: Display> Display for TypewriterPrint<T>
impl<T: Copy + Display> Copy for TypewriterPrint<T>
impl<T: Eq + Display> Eq for TypewriterPrint<T>
impl<T: Display> StructuralPartialEq for TypewriterPrint<T>
Auto Trait Implementations§
impl<T> Freeze for TypewriterPrint<T>where
T: Freeze,
impl<T> RefUnwindSafe for TypewriterPrint<T>where
T: RefUnwindSafe,
impl<T> Send for TypewriterPrint<T>where
T: Send,
impl<T> Sync for TypewriterPrint<T>where
T: Sync,
impl<T> Unpin for TypewriterPrint<T>where
T: Unpin,
impl<T> UnwindSafe for TypewriterPrint<T>where
T: UnwindSafe,
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