pub struct StyleItem {
pub motion: Vec<MotionDecl>,
pub transitions: Vec<MotionDecl>,
pub patterns: Vec<MotionDecl>,
pub accents: Vec<MotionDecl>,
pub text: Vec<MotionDecl>,
pub corners: Vec<CornerBlock>,
pub rules: Vec<StyleRuleItem>,
pub span: Span,
}Fields§
§motion: Vec<MotionDecl>§transitions: Vec<MotionDecl>transition { name: pop(from: 0.4, jelly) }.
patterns: Vec<MotionDecl>pattern { name: check(band(accent, 1, 0.28), gap(6), …) }.
accents: Vec<MotionDecl>accents { crimson: "#FF2E55" }: accent colors the application
chooses among at run time.
text: Vec<MotionDecl>text { large_title: heavy }: the weight of a text style.
corners: Vec<CornerBlock>corner { card: 22 }: named corner radii; a block with
#[target(…)] gives other values on those platforms.
rules: Vec<StyleRuleItem>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl !Send for StyleItem
impl !Sync for StyleItem
impl Freeze for StyleItem
impl RefUnwindSafe for StyleItem
impl Unpin for StyleItem
impl UnsafeUnpin for StyleItem
impl UnwindSafe for StyleItem
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