pub struct CodeRemoveLinesBuilder { /* private fields */ }Expand description
Builder for an animation of removing lines from a code block.
code.remove_lines()
.range(0..25)
.over(5.s())
.style(CodeAnimationStyle::TypeWriter),Implementations§
Source§impl CodeRemoveLinesBuilder
impl CodeRemoveLinesBuilder
Sourcepub const fn over(self, duration: Time) -> Self
pub const fn over(self, duration: Time) -> Self
Duration that you want to be animating the removal over
Sourcepub const fn ease(self, ease: Ease) -> Self
pub const fn ease(self, ease: Ease) -> Self
Ease function that you want to use on this animation
Sourcepub const fn style(self, style: CodeAnimationStyle) -> Self
pub const fn style(self, style: CodeAnimationStyle) -> Self
Style of the code animation
Trait Implementations§
Source§impl From<CodeRemoveLinesBuilder> for AnimOP
impl From<CodeRemoveLinesBuilder> for AnimOP
Source§fn from(b: CodeRemoveLinesBuilder) -> Self
fn from(b: CodeRemoveLinesBuilder) -> Self
Converts to this type from the input type.
Source§impl IntoAnimOp for CodeRemoveLinesBuilder
impl IntoAnimOp for CodeRemoveLinesBuilder
fn into_anim_op(self) -> AnimOP
Auto Trait Implementations§
impl Freeze for CodeRemoveLinesBuilder
impl RefUnwindSafe for CodeRemoveLinesBuilder
impl Send for CodeRemoveLinesBuilder
impl Sync for CodeRemoveLinesBuilder
impl Unpin for CodeRemoveLinesBuilder
impl UnsafeUnpin for CodeRemoveLinesBuilder
impl UnwindSafe for CodeRemoveLinesBuilder
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