span

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnySpan

type AnySpan interface {
	LowerPoint() point.Point
	NonceRange() common.ClosedRange
	Length() uint32
}

type DELSpan

type DELSpan = Span[*content.DELContent]

type FMTSpan

type FMTSpan = Span[*content.FMTContent]

type INSSpan

type INSSpan = Span[*content.INSContent]

type MODSpan

type MODSpan = Span[*content.MODContent]

type Span

type Span[C content.Content[C]] struct {
	Content C
	// contains filtered or unexported fields
}

func New

func New[C content.Content[C]](lowerPoint point.Point, content C) Span[C]

func (*Span[C]) Append

func (s *Span[C]) Append(other *Span[C]) *Span[C]

func (*Span[C]) AppendableSegmentTo

func (s *Span[C]) AppendableSegmentTo(other AnySpan) (*Span[C], error)

func (*Span[C]) Compare

func (s *Span[C]) Compare(other AnySpan) (common.Order, error)

func (*Span[C]) Equals

func (s *Span[C]) Equals(other *Span[C]) bool

func (*Span[C]) Intersection

func (s *Span[C]) Intersection(other AnySpan) (*Span[C], error)

func (*Span[C]) LeftSplitAt

func (s *Span[C]) LeftSplitAt(index uint32) *Span[C]

func (*Span[C]) Length

func (s *Span[C]) Length() uint32

func (*Span[C]) LowerPoint

func (s *Span[C]) LowerPoint() point.Point

func (Span[C]) MarshalJSON

func (s Span[C]) MarshalJSON() ([]byte, error)

func (*Span[C]) NonceRange

func (s *Span[C]) NonceRange() common.ClosedRange

func (*Span[C]) NthPoint

func (s *Span[C]) NthPoint(nth uint32) point.Point

func (*Span[C]) PrependableSegmentTo

func (s *Span[C]) PrependableSegmentTo(other AnySpan) (*Span[C], error)

func (*Span[C]) ReplicaID

func (s *Span[C]) ReplicaID() common.ReplicaID

func (*Span[C]) RightSplitAt

func (s *Span[C]) RightSplitAt(index uint32) *Span[C]

func (*Span[C]) SplitAt

func (s *Span[C]) SplitAt(index uint32) (*Span[C], *Span[C], error)

func (*Span[C]) SplitWith

func (s *Span[C]) SplitWith(other AnySpan) (*Span[C], *Span[C], error)

func (*Span[C]) UnmarshalJSON

func (s *Span[C]) UnmarshalJSON(data []byte) error

func (*Span[C]) UpperPoint

func (s *Span[C]) UpperPoint() point.Point

Jump to

Keyboard shortcuts

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