pub struct SpacingScale {
pub unit: Option<f32>,
}Expand description
Spacing scale configuration
Fields§
§unit: Option<f32>Base spacing unit (e.g., 4px)
Implementations§
Source§impl SpacingScale
impl SpacingScale
Sourcepub fn validate_with_inheritance(
&self,
theme_name: &str,
parent_name: Option<&str>,
) -> Result<(), String>
pub fn validate_with_inheritance( &self, theme_name: &str, parent_name: Option<&str>, ) -> Result<(), String>
Validate spacing scale with detailed error messages
Sourcepub fn inherit_from(&self, parent: &SpacingScale) -> Self
pub fn inherit_from(&self, parent: &SpacingScale) -> Self
Merge with a parent spacing scale, inheriting missing values
Trait Implementations§
Source§impl Clone for SpacingScale
impl Clone for SpacingScale
Source§fn clone(&self) -> SpacingScale
fn clone(&self) -> SpacingScale
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 SpacingScale
impl Debug for SpacingScale
Source§impl<'de> Deserialize<'de> for SpacingScale
impl<'de> Deserialize<'de> for SpacingScale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpacingScale
impl PartialEq for SpacingScale
Source§impl Serialize for SpacingScale
impl Serialize for SpacingScale
impl StructuralPartialEq for SpacingScale
Auto Trait Implementations§
impl Freeze for SpacingScale
impl RefUnwindSafe for SpacingScale
impl Send for SpacingScale
impl Sync for SpacingScale
impl Unpin for SpacingScale
impl UnwindSafe for SpacingScale
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