README

Lampese/lomo/types does not have a README file

#
Counter

type Counter = Int

#
Lamport

type Lamport = UInt

#
PeerID

type PeerID = UInt64

#
LoroError

pub(all) suberror LoroError {
InvalidPeerID
InvalidContainer(String)
DecodeError(String)
EncodeError(String)
MissingDependency(String)
InternalError(String)
Unsupported(String)
StyleConfigMissing(String)
FrontiersNotIncluded(ID)
TreeNodeNotFound(TreeID)
TreeParentNotFound(TreeID)
UndoGroupAlreadyStarted
UndoGroupNotStarted
UndoWithDifferentPeerId(UInt64, UInt64)
}

impl Eq for LoroError
impl Show for LoroError

#
ContainerID

pub(all) enum ContainerID {
Root(String, ContainerType)
Normal(UInt64, Int, ContainerType)
}

impl Eq for ContainerID
impl Hash for ContainerID
impl Show for ContainerID

#
ContainerID::container_type

fn ContainerID::container_type(self : ContainerID) -> ContainerType

#
ContainerID::is_root

fn ContainerID::is_root(self : ContainerID) -> Bool

#
ContainerID::normal

fn ContainerID::normal(peer : UInt64, counter : Int, container_type : ContainerType) -> ContainerID

#
ContainerID::root

fn ContainerID::root(name : String, container_type : ContainerType) -> ContainerID

#
ContainerType

pub(all) enum ContainerType {
Map
List
Text
Tree
RichText
MovableList
Counter
Unknown(Byte)
}

impl Eq for ContainerType

#
CounterSpan

pub struct CounterSpan {
start : Int
end : Int
}

impl Eq for CounterSpan
impl Show for CounterSpan

#
CounterSpan::contains

fn CounterSpan::contains(self : CounterSpan, counter : Int) -> Bool

#
CounterSpan::len

fn CounterSpan::len(self : CounterSpan) -> Int

#
CounterSpan::new

fn CounterSpan::new(start : Int, end : Int) -> CounterSpan

#
CounterSpan::normalize

fn CounterSpan::normalize(self : CounterSpan) -> CounterSpan

#
ExpandType

pub(all) enum ExpandType {
Before
After
Both
NoExpand
}

impl Eq for ExpandType
impl Show for ExpandType

#
ExpandType::expand_after

fn ExpandType::expand_after(self : ExpandType) -> Bool

#
ExpandType::expand_before

fn ExpandType::expand_before(self : ExpandType) -> Bool

#
ExpandType::from_info

fn ExpandType::from_info(info : Int) -> ExpandType

#
ExpandType::reverse

fn ExpandType::reverse(self : ExpandType) -> ExpandType

#
ExpandType::to_info

fn ExpandType::to_info(self : ExpandType) -> Int

#
ExportMode

pub(all) enum ExportMode {
Snapshot
Updates(VersionVector?)
}

#
ExportMode::snapshot

fn ExportMode::snapshot() -> ExportMode

#
ExportMode::updates

fn ExportMode::updates(from : VersionVector?) -> ExportMode

#
FractionalIndex

pub struct FractionalIndex {
bytes : Bytes
}

#
FractionalIndex::bytes

fn FractionalIndex::bytes(self : FractionalIndex) -> Bytes

#
FractionalIndex::compare

fn FractionalIndex::compare(self : FractionalIndex, other : FractionalIndex) -> Int

#
FractionalIndex::default

#
FractionalIndex::from_bytes

fn FractionalIndex::from_bytes(bytes : Bytes) -> FractionalIndex

#
FractionalIndex::new

#
FractionalIndex::new_after

#
FractionalIndex::new_before

#
FractionalIndex::new_between

fn FractionalIndex::new_between(left : FractionalIndex, right : FractionalIndex) -> FractionalIndex?

#
Frontiers

pub struct Frontiers {
ids : Array[ID]
}

impl Show for Frontiers

#
Frontiers::as_single

fn Frontiers::as_single(self : Frontiers) -> ID?

#
Frontiers::as_view

fn Frontiers::as_view(self : Frontiers) -> ArrayView[ID]

#
Frontiers::clone

fn Frontiers::clone(self : Frontiers) -> Frontiers

#
Frontiers::contains

fn Frontiers::contains(self : Frontiers, id : ID) -> Bool

#
Frontiers::from_array

fn Frontiers::from_array(ids : Array[ID]) -> Frontiers

#
Frontiers::from_id

fn Frontiers::from_id(id : ID) -> Frontiers

#
Frontiers::is_empty

fn Frontiers::is_empty(self : Frontiers) -> Bool

#
Frontiers::iter

fn Frontiers::iter(self : Frontiers) -> ArrayView[ID]

#
Frontiers::len

fn Frontiers::len(self : Frontiers) -> Int

#
Frontiers::new

fn Frontiers::new() -> Frontiers

#
Frontiers::push

fn Frontiers::push(self : Frontiers, id : ID) -> Unit

#
Frontiers::remove

fn Frontiers::remove(self : Frontiers, id : ID) -> Unit

#
Frontiers::update_on_new_change

fn Frontiers::update_on_new_change(self : Frontiers, id_last : ID, deps : Frontiers) -> Unit

pub struct ID {
peer : UInt64
counter : Int
}

impl Eq for ID
impl Hash for ID
impl Show for ID

#
ID::inc

fn ID::inc(self : ID, offset : Int) -> ID

#
ID::new

fn ID::new(peer : UInt64, counter : Int) -> ID

#
IdFull

pub struct IdFull {
peer : UInt64
lamport : UInt
counter : Int
}

impl Eq for IdFull
impl Hash for IdFull
impl Show for IdFull

#
IdFull::new

fn IdFull::new(peer : UInt64, counter : Int, lamport : UInt) -> IdFull

#
IdFull::to_id

fn IdFull::to_id(self : IdFull) -> ID

#
IdFull::to_id_lp

fn IdFull::to_id_lp(self : IdFull) -> IdLp

#
IdLp

pub struct IdLp {
lamport : UInt
peer : UInt64
}

impl Eq for IdLp
impl Hash for IdLp
impl Show for IdLp

#
IdLp::new

fn IdLp::new(peer : UInt64, lamport : UInt) -> IdLp

#
IdSpan

pub struct IdSpan {
peer : UInt64
counter : CounterSpan
}

impl Eq for IdSpan
impl Show for IdSpan

#
IdSpan::new

fn IdSpan::new(peer : UInt64, start : Int, end : Int) -> IdSpan

#
LoroValue

pub(all) enum LoroValue {
Null
Bool(Bool)
I64(Int64)
F64(Double)
String(String)
Bytes(Bytes)
List(Array[LoroValue])
Map(Map[String, LoroValue])
Container(ContainerID)
}

impl Show for LoroValue

#
LoroValue::into_container

fn LoroValue::into_container(self : LoroValue) -> ContainerID?

#
LoroValue::is_container

fn LoroValue::is_container(self : LoroValue) -> Bool

#
StyleConfig

pub struct StyleConfig {
expand : ExpandType
}

impl Eq for StyleConfig
impl Show for StyleConfig

#
StyleConfig::new

#
StyleConfig::with_expand

fn StyleConfig::with_expand(expand : ExpandType) -> StyleConfig

#
StyleConfigMap

pub struct StyleConfigMap {
map : Map[String, StyleConfig]
default_style : StyleConfig?
}

#
StyleConfigMap::default_rich_text_config

fn StyleConfigMap::default_rich_text_config() -> StyleConfigMap

#
StyleConfigMap::get

fn StyleConfigMap::get(self : StyleConfigMap, key : String) -> StyleConfig?

#
StyleConfigMap::insert

fn StyleConfigMap::insert(self : StyleConfigMap, key : String, value : StyleConfig) -> Unit

#
StyleConfigMap::new

#
StyleConfigMap::set_default

fn StyleConfigMap::set_default(self : StyleConfigMap, value : StyleConfig?) -> Unit

#
StyleConfigMap::style_info

fn StyleConfigMap::style_info(self : StyleConfigMap, key : String, is_unmark : Bool) -> Int?

#
TreeID

pub(all) struct TreeID {
peer : UInt64
counter : Int
}

impl Eq for TreeID
impl Hash for TreeID
impl Show for TreeID

#
TreeID::delete_root

fn TreeID::delete_root() -> TreeID

#
TreeID::from_id

fn TreeID::from_id(id : ID) -> TreeID

#
TreeID::id

fn TreeID::id(self : TreeID) -> ID

#
TreeID::is_deleted_root

fn TreeID::is_deleted_root(self : TreeID) -> Bool

#
TreeID::meta_container

fn TreeID::meta_container(self : TreeID) -> ContainerID

#
TreeID::new

fn TreeID::new(peer : UInt64, counter : Int) -> TreeID

#
TreeParentId

pub(all) enum TreeParentId {
Root
Deleted
Node(TreeID)
}

impl Eq for TreeParentId

#
TreeParentId::deleted

fn TreeParentId::deleted() -> TreeParentId

#
TreeParentId::from_option

fn TreeParentId::from_option(parent : TreeID?) -> TreeParentId

#
TreeParentId::to_option

fn TreeParentId::to_option(self : TreeParentId) -> TreeID?

#
VersionVector

pub struct VersionVector {
entries : Map[UInt64, Int]
}

#
VersionVector::extend_to_include_last_id

fn VersionVector::extend_to_include_last_id(self : VersionVector, id : ID) -> Unit

#
VersionVector::get

fn VersionVector::get(self : VersionVector, peer : UInt64) -> Int

#
VersionVector::includes_id

fn VersionVector::includes_id(self : VersionVector, id : ID) -> Bool

#
VersionVector::is_empty

fn VersionVector::is_empty(self : VersionVector) -> Bool

#
VersionVector::merge

fn VersionVector::merge(self : VersionVector, other : VersionVector) -> Unit

#
VersionVector::new

#
VersionVector::set

fn VersionVector::set(self : VersionVector, peer : UInt64, counter : Int) -> Unit

#
VersionVector::to_map

fn VersionVector::to_map(self : VersionVector) -> Map[UInt64, Int]