pub enum Value {
Color(Color),
Number(f32),
Shadow(Shadow),
Easing([f32; 4]),
Text(Rc<str>),
}Expand description
一个 token 在某个明暗档下的实际取值。
Variants§
Color(Color)
Number(f32)
长度(px) / 时长(秒) / 字号(px) / 字重与行高(无单位)
Shadow(Shadow)
Easing([f32; 4])
三次贝塞尔控制点
Text(Rc<str>)
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl !Send for Value
impl !Sync for Value
impl Forget for Value
impl Freeze for Value
impl Move for Value
impl RefUnwindSafe for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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