SassNull

Swift
public final class SassNull: SassValue, Sendable

The Sass null value.

You cannot create instances of this type: use SassConstants.null instead.


Topics

Properties

var isTruthy: Bool

Sass considers all values except null and false to be “truthy”, meaning your function should almost always be checking this property instead of trying to downcast to SassBool.

Declaration
Swift
public override var isTruthy: Bool { get }

var isNull: Bool

Does this value represent Sass’s null value?

Declaration
Swift
public override var isNull: Bool { get }

Misc

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

There’s only one instance of null and it’s equal to itself.

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

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 }