pub struct SmoothOptions {
pub brush: Brush,
pub cycles: u32,
pub method: SmoothMethod,
}Expand description
Options for smooth.
Fields§
§brush: BrushThe brush to apply.
cycles: u32How many cycles to run; 0 moves nothing.
method: SmoothMethodHow each cycle relaxes.
Implementations§
Source§impl SmoothOptions
impl SmoothOptions
Sourcepub fn builder() -> SmoothOptionsBuilder
pub fn builder() -> SmoothOptionsBuilder
A builder for SmoothOptions: the default brush until set, 0 cycles.
Trait Implementations§
Source§impl Clone for SmoothOptions
impl Clone for SmoothOptions
Source§fn clone(&self) -> SmoothOptions
fn clone(&self) -> SmoothOptions
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 moreimpl Copy for SmoothOptions
Source§impl Debug for SmoothOptions
impl Debug for SmoothOptions
Source§impl Default for SmoothOptions
impl Default for SmoothOptions
Source§fn default() -> SmoothOptions
fn default() -> SmoothOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SmoothOptions
impl PartialEq for SmoothOptions
impl StructuralPartialEq for SmoothOptions
Auto Trait Implementations§
impl Freeze for SmoothOptions
impl RefUnwindSafe for SmoothOptions
impl Send for SmoothOptions
impl Sync for SmoothOptions
impl Unpin for SmoothOptions
impl UnsafeUnpin for SmoothOptions
impl UnwindSafe for SmoothOptions
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