pub enum CodeHighlightAction {
Lines {
ranges: Vec<Range<usize>>,
color: Color,
duration: Time,
curve: Ease,
},
Pattern {
regex: String,
color: Color,
duration: Time,
curve: Ease,
},
}Variants§
Implementations§
Source§impl CodeHighlightAction
impl CodeHighlightAction
pub const fn duration_and_curve(&self) -> (Time, Ease)
Trait Implementations§
Source§impl Clone for CodeHighlightAction
impl Clone for CodeHighlightAction
Source§fn clone(&self) -> CodeHighlightAction
fn clone(&self) -> CodeHighlightAction
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 moreSource§impl Debug for CodeHighlightAction
impl Debug for CodeHighlightAction
Source§impl<'de> Deserialize<'de> for CodeHighlightAction
impl<'de> Deserialize<'de> for CodeHighlightAction
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
Auto Trait Implementations§
impl Freeze for CodeHighlightAction
impl RefUnwindSafe for CodeHighlightAction
impl Send for CodeHighlightAction
impl Sync for CodeHighlightAction
impl Unpin for CodeHighlightAction
impl UnsafeUnpin for CodeHighlightAction
impl UnwindSafe for CodeHighlightAction
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