#[non_exhaustive]pub enum CardLook {
Plain,
Opening,
Closing,
}Expand description
How a title card looks and moves.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plain
The title and the line under it, still.
Opening
The opening of a film: the logo plays, then the title and the line under it come in. The player says them once they are in.
Closing
The farewell at the end: the logo plays again, then the parting words come in, and the player says them.
Implementations§
Source§impl CardLook
impl CardLook
Sourcepub const fn words_in_ms(self) -> u64
pub const fn words_in_ms(self) -> u64
When the words of a card of this look are all in, in milliseconds from its start.
Sourcepub const fn speaks_from_ms(self) -> u64
pub const fn speaks_from_ms(self) -> u64
When the player starts saying the words, in milliseconds from the card’s start.
Trait Implementations§
impl Copy for CardLook
Source§impl<'de> Deserialize<'de> for CardLook
impl<'de> Deserialize<'de> for CardLook
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 CardLook
impl StructuralPartialEq for CardLook
Auto Trait Implementations§
impl Freeze for CardLook
impl RefUnwindSafe for CardLook
impl Send for CardLook
impl Sync for CardLook
impl Unpin for CardLook
impl UnsafeUnpin for CardLook
impl UnwindSafe for CardLook
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
impl<T> Brush for T
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more