pub enum SassFunctionSignature {
Ordinary(Cow<'static, str>),
Fallback,
OverloadDebugStatements,
OverloadWarnStatements,
OverloadErrorStatements,
}
Expand description
Represents a Sass Function signature.
Variants§
Ordinary(Cow<'static, str>)
A signature like foo()
.
Fallback
*
- Fallback implementation.
The fallback implementation will be given the name of the called function as the first argument, before all the original function arguments.
OverloadDebugStatements
@debug
- Overload debug statements.
OverloadWarnStatements
@warn
- Overload warn statements.
OverloadErrorStatements
@error
- Overload error statements.
Implementations§
Source§impl SassFunctionSignature
impl SassFunctionSignature
Sourcepub fn from_static_str(signature: &'static str) -> Self
pub fn from_static_str(signature: &'static str) -> Self
Create a SassFunctionSignature from a static str
Sourcepub fn from_string(signature: String) -> Self
pub fn from_string(signature: String) -> Self
Create a SassFunctionSignature from a String
Trait Implementations§
Source§impl Clone for SassFunctionSignature
impl Clone for SassFunctionSignature
Source§fn clone(&self) -> SassFunctionSignature
fn clone(&self) -> SassFunctionSignature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SassFunctionSignature
impl Debug for SassFunctionSignature
Source§impl Hash for SassFunctionSignature
impl Hash for SassFunctionSignature
Source§impl Ord for SassFunctionSignature
impl Ord for SassFunctionSignature
Source§fn cmp(&self, other: &SassFunctionSignature) -> Ordering
fn cmp(&self, other: &SassFunctionSignature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SassFunctionSignature
impl PartialEq for SassFunctionSignature
Source§impl PartialOrd for SassFunctionSignature
impl PartialOrd for SassFunctionSignature
impl Eq for SassFunctionSignature
impl StructuralPartialEq for SassFunctionSignature
Auto Trait Implementations§
impl Freeze for SassFunctionSignature
impl RefUnwindSafe for SassFunctionSignature
impl Send for SassFunctionSignature
impl Sync for SassFunctionSignature
impl Unpin for SassFunctionSignature
impl UnwindSafe for SassFunctionSignature
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