ygleam/y_doc

Functions

pub fn client_id(y_doc: YDoc) -> String
pub fn destroy(y_doc: YDoc) -> Nil
pub fn gc(y_doc: YDoc) -> Bool
pub fn get_array(y_doc: YDoc, name: String) -> YArray
pub fn get_map(y_doc: YDoc, name: String) -> YMap
pub fn get_text(y_doc: YDoc, name: String) -> YText
pub fn get_xml_element(y_doc: YDoc, name: String) -> YXmlElement
pub fn get_xml_fragment(
  y_doc: YDoc,
  name: String,
) -> YXmlFragment
pub fn new() -> YDoc
pub fn on_after_transaction(
  y_doc: YDoc,
  cb: fn(Transaction, YDoc) -> Nil,
) -> Nil
pub fn on_before_observer_calls(
  y_doc: YDoc,
  cb: fn(Transaction, YDoc) -> Nil,
) -> Nil
pub fn on_before_transaction(
  y_doc: YDoc,
  cb: fn(Transaction, YDoc) -> Nil,
) -> Nil
pub fn on_destroy(y_doc: YDoc, cb: fn(YDoc) -> Nil) -> Nil
pub fn on_subdocs(
  y_doc: YDoc,
  cb: fn(List(YDoc), List(YDoc), List(YDoc)) -> Nil,
) -> Nil
pub fn on_update(
  y_doc: YDoc,
  cb: fn(BitArray, a, YDoc, Transaction) -> Nil,
) -> Nil
pub fn on_update_v2(
  y_doc: YDoc,
  cb: fn(BitArray, a, YDoc, Transaction) -> Nil,
) -> Nil
pub fn transact(y_doc: YDoc, cb: fn() -> Nil, origin: a) -> Nil
Search Document