same

package
v0.0.0-alpha.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package same tells whether the values a frame was drawn from are the same as the last frame's, so that what was worked out from them can be kept.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Effect

func Effect(a, b fx.Effect) bool

Effect reports whether a and b are equal, treating effects that cannot be compared, like an fx.Func, as different.

func Fixed

func Fixed(v reflect.Value) bool

Fixed reports whether v is comparable and cannot change without changing v itself, so that it can be compared with == or be a map key. A value behind a pointer can change without the pointer changing, including one wrapped by another value, such as an effect wrapped by fx.Delay. The zero Value, of a nil interface, is fixed.

func Style

func Style(a, b *lipgloss.Style) bool

Style reports whether a and b render the same. Styles cannot be compared with ==, so they are compared deeply, but first by their bytes, which is far cheaper and matches the usual case of styles copied from the same one each frame. A style with a transform function never matches, as the function may give something else each time, and is rendered every time.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL