pub struct DiagonalParams {
pub angle: i32,
pub frequency: f64,
}Expand description
Parameters for configuring diagonal pattern effects
Fields§
§angle: i32Angle in degrees (0-360)
frequency: f64Animation frequency (0.1-10.0)
Trait Implementations§
Source§impl Clone for DiagonalParams
impl Clone for DiagonalParams
Source§fn clone(&self) -> DiagonalParams
fn clone(&self) -> DiagonalParams
Returns a duplicate of the value. Read more
1.0.0 · 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 DiagonalParams
impl Debug for DiagonalParams
Source§impl Default for DiagonalParams
impl Default for DiagonalParams
Source§impl PatternParam for DiagonalParams
impl PatternParam for DiagonalParams
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of the parameter for CLI help text
Source§fn param_type(&self) -> ParamType
fn param_type(&self) -> ParamType
Type of the parameter
Source§fn default_value(&self) -> String
fn default_value(&self) -> String
Default value as a string
Source§fn validate(&self, value: &str) -> Result<(), String>
fn validate(&self, value: &str) -> Result<(), String>
Validate a string value for this parameter
Source§fn parse(&self, value: &str) -> Result<Box<dyn PatternParam>, String>
fn parse(&self, value: &str) -> Result<Box<dyn PatternParam>, String>
Parse a string value into the appropriate type
Source§fn sub_params(&self) -> Vec<Box<dyn PatternParam>>
fn sub_params(&self) -> Vec<Box<dyn PatternParam>>
List of sub-parameters if this is a composite type
Source§fn clone_param(&self) -> Box<dyn PatternParam>
fn clone_param(&self) -> Box<dyn PatternParam>
Clone implementation for trait object
Auto Trait Implementations§
impl Freeze for DiagonalParams
impl RefUnwindSafe for DiagonalParams
impl Send for DiagonalParams
impl Sync for DiagonalParams
impl Unpin for DiagonalParams
impl UnwindSafe for DiagonalParams
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