Struct rsass::SassFunction
[−]
[src]
pub struct SassFunction { /* fields omitted */ }
A function that can be called from a sass value.
The function can be either "builtin" (implemented in rust) or "user defined" (implemented in scss).
Methods
impl SassFunction
[src]
fn builtin(
args: Vec<(String, Value)>,
is_varargs: bool,
body: Arc<Fn(&Scope) -> Result<Value, Error> + Send + Sync>
) -> Self
[src]
args: Vec<(String, Value)>,
is_varargs: bool,
body: Arc<Fn(&Scope) -> Result<Value, Error> + Send + Sync>
) -> Self
Create a new SassFunction
from a rust implementation.
fn new(args: FormalArgs, body: Vec<Item>) -> Self
[src]
Create a new SassFunction
from a scss implementation.
fn call(&self, scope: &Scope, args: &CallArgs) -> Result<Value, Error>
[src]
Call the function from a given scope and with a given set of arguments.
Trait Implementations
impl Clone for SassFunction
[src]
fn clone(&self) -> SassFunction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SassFunction
[src]
impl PartialEq for SassFunction
[src]
fn eq(&self, __arg_0: &SassFunction) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SassFunction) -> bool
[src]
This method tests for !=
.