pub struct VisualizationConfigBuilder { /* private fields */ }
Expand description
Builder pattern for creating visualization configurations
Implementations§
Source§impl VisualizationConfigBuilder
impl VisualizationConfigBuilder
Sourcepub fn output_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn output_dir<P: Into<PathBuf>>(self, path: P) -> Self
Set the output directory
Sourcepub fn image_format(self, format: ImageFormat) -> Self
pub fn image_format(self, format: ImageFormat) -> Self
Set the image format
Sourcepub fn color_palette(self, palette: ColorPalette) -> Self
pub fn color_palette(self, palette: ColorPalette) -> Self
Set the color palette
Sourcepub fn interactive(self, enable: bool) -> Self
pub fn interactive(self, enable: bool) -> Self
Enable or disable interactive features
Sourcepub fn canvas_size(self, width: u32, height: u32) -> Self
pub fn canvas_size(self, width: u32, height: u32) -> Self
Set canvas dimensions
Sourcepub fn max_points(self, max_points: usize) -> Self
pub fn max_points(self, max_points: usize) -> Self
Set performance settings
Sourcepub fn downsampling(self, strategy: DownsamplingStrategy) -> Self
pub fn downsampling(self, strategy: DownsamplingStrategy) -> Self
Enable or disable downsampling
Sourcepub fn build(self) -> VisualizationConfig
pub fn build(self) -> VisualizationConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VisualizationConfigBuilder
impl RefUnwindSafe for VisualizationConfigBuilder
impl Send for VisualizationConfigBuilder
impl Sync for VisualizationConfigBuilder
impl Unpin for VisualizationConfigBuilder
impl UnwindSafe for VisualizationConfigBuilder
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> 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