pub struct MatrixConfigBuilder { /* private fields */ }Implementations§
Source§impl MatrixConfigBuilder
impl MatrixConfigBuilder
pub fn new() -> Self
pub fn charset(self, charset: CharSet) -> Self
pub fn theme(self, theme: Theme) -> Self
pub fn fps(self, fps: u16) -> Self
pub fn speed(self, speed: f32) -> Self
pub fn density(self, density: f32) -> Self
pub fn min_trail(self, min_trail: u16) -> Self
pub fn max_trail(self, max_trail: u16) -> Self
pub fn mutation_rate(self, mutation_rate: f32) -> Self
pub fn bold_head(self, bold_head: bool) -> Self
pub fn head_white(self, head_white: bool) -> Self
pub fn glitch(self, glitch: f32) -> Self
pub fn background(self, background: Option<Color>) -> Self
pub fn build(self) -> Result<MatrixConfig, MatrixError>
Trait Implementations§
Source§impl Clone for MatrixConfigBuilder
impl Clone for MatrixConfigBuilder
Source§fn clone(&self) -> MatrixConfigBuilder
fn clone(&self) -> MatrixConfigBuilder
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 MatrixConfigBuilder
impl Debug for MatrixConfigBuilder
Auto Trait Implementations§
impl Freeze for MatrixConfigBuilder
impl RefUnwindSafe for MatrixConfigBuilder
impl Send for MatrixConfigBuilder
impl Sync for MatrixConfigBuilder
impl Unpin for MatrixConfigBuilder
impl UnsafeUnpin for MatrixConfigBuilder
impl UnwindSafe for MatrixConfigBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more