Struct rsass::sass::ResolvedArgs
source · pub struct ResolvedArgs { /* private fields */ }
Expand description
The arguments to a builtin function.
Implementations§
source§impl ResolvedArgs
impl ResolvedArgs
sourcepub fn get<T>(&self, name: Name) -> Result<T, CallError>
pub fn get<T>(&self, name: Name) -> Result<T, CallError>
Get a named argument.
The argument is converted to the expected type with TryFrom
.
sourcepub fn get_opt<T>(&self, name: Name) -> Result<Option<T>, CallError>
pub fn get_opt<T>(&self, name: Name) -> Result<Option<T>, CallError>
Get an optional named argument.
sourcepub fn get_map<T, F, E>(&self, name: Name, check: F) -> Result<T, CallError>
pub fn get_map<T, F, E>(&self, name: Name, check: F) -> Result<T, CallError>
Get a named argument.
The check
function is responsible for checking that the
argument is valid and converting it to the correct type.
sourcepub fn get_opt_map<T, F>(
&self,
name: Name,
check: F
) -> Result<Option<T>, CallError>
pub fn get_opt_map<T, F>( &self, name: Name, check: F ) -> Result<Option<T>, CallError>
Get an optional named argument.
sourcepub fn call_scope(&self) -> ScopeRef
pub fn call_scope(&self) -> ScopeRef
Get the scope from this the function was called.
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedArgs
impl Send for ResolvedArgs
impl Sync for ResolvedArgs
impl Unpin for ResolvedArgs
impl UnwindSafe for ResolvedArgs
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