SassMixin

Swift
public final class SassMixin: SassValue, Sendable

A Sass mixin.

Values representing mixins can only be created by the compiler. See the Sass docs.


Topics

Properties

var id: Int

The mixin ID. Opaque to users, meaningful to Sass implementations.

Declaration
Swift
public let id: Int

Misc

static func ==(lhs: SassMixin, rhs: SassMixin) -> Bool

Mixins are equal if they have the same ID and apply to the same compilation. We only test the first part of that so watch out.

Declaration
Swift
public static func == (lhs: SassMixin, rhs: SassMixin) -> Bool

func hash(into: inout Hasher)

Hash the mixin

Declaration
Swift
public override func hash(into hasher: inout Hasher)

func accept<V, R>(visitor: V) -> R

Take part in the SassValueVisitor protocol.

Declaration
Swift
public override func accept<V, R>(visitor: V) throws -> R
where V: SassValueVisitor, R == V.ReturnType

var description: String

A short description of the value.

Declaration
Swift
public override var description: String { get }