pub struct Function {
pub name: String,
pub params: Option<Vec<Value>>,
pub is_style: bool,
}Expand description
Fields§
§name: String§params: Option<Vec<Value>>§is_style: booluse to recognize the function is used on the template or style
if is style: () should be exist in the function when the function is called (although no args)
Implementations§
Trait Implementations§
Source§impl TryFrom<&Function> for BuiltinColor
impl TryFrom<&Function> for BuiltinColor
Source§impl TryFrom<&Function> for LinearGradient
impl TryFrom<&Function> for LinearGradient
Source§impl TryFrom<&Function> for MakepadShader
impl TryFrom<&Function> for MakepadShader
Source§impl TryFrom<&Function> for RadialGradient
impl TryFrom<&Function> for RadialGradient
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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