pub struct AutoLayoutConfigBuilder { /* private fields */ }Expand description
Builder for AutoLayoutConfig
Implementations§
Source§impl AutoLayoutConfigBuilder
impl AutoLayoutConfigBuilder
Sourcepub fn strategy(self, strategy: AutoLayoutStrategy) -> Self
pub fn strategy(self, strategy: AutoLayoutStrategy) -> Self
Set the layout selection strategy
Sourcepub fn small_graph_threshold(self, threshold: usize) -> Self
pub fn small_graph_threshold(self, threshold: usize) -> Self
Set the small graph threshold
Sourcepub fn enable_transitions(self, enable: bool) -> Self
pub fn enable_transitions(self, enable: bool) -> Self
Enable or disable transitions
Sourcepub fn transition_duration(self, duration: f64) -> Self
pub fn transition_duration(self, duration: f64) -> Self
Set the transition duration
Sourcepub fn force_relayout_on_change(self, force: bool) -> Self
pub fn force_relayout_on_change(self, force: bool) -> Self
Set whether to force relayout on change
Sourcepub fn build(self) -> AutoLayoutConfig
pub fn build(self) -> AutoLayoutConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoLayoutConfigBuilder
impl RefUnwindSafe for AutoLayoutConfigBuilder
impl Send for AutoLayoutConfigBuilder
impl Sync for AutoLayoutConfigBuilder
impl Unpin for AutoLayoutConfigBuilder
impl UnwindSafe for AutoLayoutConfigBuilder
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