Module yrs::types

source · []

Re-exports

pub use map::Map;
pub use text::Text;

Modules

Structs

Branch describes a content of a complex Yrs data structures, such as arrays or maps.

A wrapper around Branch cell, supplied with a bunch of convenience methods to operate on both map-like and array-like contents of a Branch.

Enums

A single change done over an array-component of shared data type.

A single change done over a text-like types: Text or XmlText.

A single change done over a map-component of shared data type.

Generalized wrapper around events fired by specialized shared data types.

A single segment of a Path.

Value that can be returned by Yrs data types. This includes Any which is an extension representation of JSON, but also nested complex collaborative structures specific to Yrs.

Constants

Type ref identifier for an Array type.

Type ref identifier for a Map type.

Type ref identifier for a Text type.

Placeholder type ref identifier for non-specialized AbstractType. Used only for root-level types which have been integrated from remote peers before they were defined locally.

Type ref identifier for a XmlElement type.

Type ref identifier for a [XmlFragment] type. Used for compatibility.

Type ref identifier for a [XmlHook] type. Used for compatibility.

Type ref identifier for a XmlText type.

Traits

Trait implemented by all Y-types, allowing for observing events which are emitted by nested types.

Type Definitions

An alias for map of attributes used as formatting parameters by Text and XmlText types.

A path describing nesting structure between shared collections containing each other. It’s a collection of segments which refer to either index (in case of Array or XmlElement) or string key (in case of Map) where successor shared collection can be found within subsequent parent types.