Struct yrs::YEvent

source · []
#[repr(C)]
pub struct YEvent { pub tag: i8, pub content: YEventContent, }

Fields

tag: i8

Tag describing, which shared type emitted this event.

  • Y_TEXT for pointers to YText data types.
  • Y_ARRAY for pointers to YArray data types.
  • Y_MAP for pointers to YMap data types.
  • Y_XML_ELEM for pointers to YXmlElement data types.
  • Y_XML_TEXT for pointers to YXmlText data types.
content: YEventContent

A nested event type, specific for a shared data type that triggered it. Type of an event can be verified using tag field.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.