Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alex-shapiro/ditto
/ functions
Functions
513 in github.com/alex-shapiro/ditto
⨍
Functions
513
◇
Types & classes
58
↓ 1 callers
Function
as_text
(json_value: &Inner)
src/json.rs:1052
↓ 1 callers
Function
choose_len
(rng: &mut ThreadRng, idx: usize, text_len: usize)
benches/text.rs:86
↓ 1 callers
Method
cmp
(&self, other: &Uid)
src/sequence/uid.rs:172
↓ 1 callers
Method
cmp
(&self, other: &Element)
src/text/mod.rs:393
↓ 1 callers
Method
do_insert
(&mut self, idx: usize, text: String, dot: Dot)
src/text/mod.rs:159
↓ 1 callers
Method
do_replace
(&mut self, idx: usize, len: usize, text: String, dot: Dot)
src/text/mod.rs:170
↓ 1 callers
Method
execute_op
Executes an Op and returns a reference to the new value if the value has changed. If the op has already been executed or superceded, nothing is done.
src/register.rs:108
↓ 1 callers
Method
execute_op
Executes an Op and returns the equivalent increment. If the op has already been executed or superceded, nothing is done.
src/counter.rs:119
↓ 1 callers
Method
first_id
(&self)
src/tree.rs:432
↓ 1 callers
Method
gen_merged_edit
(&mut self, idx: usize, len: usize, text: &str)
src/text/mod.rs:316
↓ 1 callers
Function
gen_word
(rng: &mut ThreadRng)
benches/text.rs:62
↓ 1 callers
Method
get
Returns a reference to the `Register`'s value.
src/register.rs:71
↓ 1 callers
Method
get
Returns a reference to the value corresponding to the key.
src/map.rs:121
↓ 1 callers
Method
get_element_offset
(&self, idx: usize)
src/text/mod.rs:311
↓ 1 callers
Method
get_mut_element
(&mut self, key: &Q, dot: Dot)
src/map.rs:190
↓ 1 callers
Method
get_nested_local
(&self, pointer: &[&str])
src/json.rs:319
↓ 1 callers
Method
get_nested_remote
(&mut self, pointer: &[Uid])
src/json.rs:364
↓ 1 callers
Method
insert
Inserts a value at position `idx` in the list, shifting all elements after it to the right. Panics if the idx is out of bounds. If the insert succeeds
src/list.rs:138
↓ 1 callers
Method
inserted_elements
(&self)
src/text/mod.rs:362
↓ 1 callers
Method
key
Returns the `Op`'s key.
src/map.rs:375
↓ 1 callers
Method
last_id
(&self)
src/tree.rs:438
↓ 1 callers
Method
merge
(&mut self, other: Inner, summary: &Summary, other_summary: &Summary)
src/json.rs:276
↓ 1 callers
Method
nested_can_merge
(&self, other: &Inner<K,V>)
src/map.rs:322
↓ 1 callers
Method
nested_force_merge
(&mut self, other: Inner<K, V>, summary: &Summary, other_summary: &Summary)
src/map.rs:338
↓ 1 callers
Method
nested_merge
(&mut self, other: Self, summary: &Summary, other_summary: &Summary)
src/traits.rs:139
↓ 1 callers
Method
nested_validate
(&self, site_id: SiteId)
src/json.rs:506
↓ 1 callers
Method
nested_validate_all
(&self, site_id: SiteId)
src/list.rs:320
↓ 1 callers
Method
nested_validate_all
(&self, site_id: SiteId)
src/map.rs:310
↓ 1 callers
Method
nested_validate_no_unassigned_sites
(&self)
src/json.rs:420
↓ 1 callers
Method
pop_first
(&mut self)
src/tree.rs:386
↓ 1 callers
Method
pop_last
(&mut self)
src/tree.rs:398
↓ 1 callers
Method
remove
Removes the element at position `idx` from the list, shifting all elements after it to the left. Panics if the idx is out-of-bounds. If the remove suc
src/list.rs:149
↓ 1 callers
Method
shift_merged_edit
(&mut self, local_ops: &[LocalOp])
src/text/mod.rs:328
↓ 1 callers
Method
should_overwrite
Checks whether the TextEdit should be overwritten.
src/text/text_edit.rs:102
↓ 1 callers
Method
validate
Validates that the Op's site id is equal to the given site id.
src/register.rs:260
↓ 1 callers
Method
validate
(&self, site_id: SiteId)
src/json.rs:471
↓ 1 callers
Method
validate
Validates that the Op's site id is equal to the given site id.
src/counter.rs:223
↓ 1 callers
Method
validate_all
(&self, site_id: SiteId)
src/text/mod.rs:276
↓ 1 callers
Method
validate_no_unassigned_sites
(&self)
src/json.rs:284
Method
add_site_id
Assigns a site id and returns a cached op if it exists.
src/register.rs:160
Method
add_site_id
(&mut self, site_id: SiteId)
src/list.rs:280
Method
add_site_id
Assigns a site id and returns a cached op if it exists.
src/counter.rs:136
Method
add_site_id
(&mut self, site_id: SiteId)
src/map.rs:258
Method
add_site_id
(&mut self, site_id: SiteId)
src/set.rs:190
Method
add_site_id
(&mut self, site_id: SiteId)
src/text/mod.rs:259
Function
benchmark_long_text
(b: &mut test::Bencher)
benches/text.rs:27
Function
benchmark_medium_text
(b: &mut test::Bencher)
benches/text.rs:20
Function
benchmark_short_text
(b: &mut test::Bencher)
benches/text.rs:13
Method
between
(uid1: &Uid, uid2: &Uid, dot: Dot)
src/sequence/uid.rs:67
Method
between
(elt1: &Element, elt2: &Element, text: String, dot: Dot)
src/text/mod.rs:373
Method
clone_state
Returns an owned RegisterState of cloned values.
src/register.rs:199
Method
compact
Returns a compacted sequence of text edits that have the same effect as the original sequence. Takes O(N) time, where N is the number of text edits in
src/text/text_edit.rs:85
Method
counter
Returns the `Op`'s counter
src/register.rs:244
Method
counter
returns the Op counter.
src/counter.rs:212
Method
default
()
src/tree.rs:541
Method
deserialize
(deserializer: D)
src/tree.rs:535
Method
deserialize
(deserializer: D)
src/sequence/uid.rs:238
Method
deserialize
(deserializer: D)
src/text/mod.rs:431
Method
element_len
(&self)
src/tree.rs:39
Method
element_len
(&self)
src/text/mod.rs:405
Method
eq
(&self, other: &Element<T>)
src/list.rs:69
Method
eq
(&self, other: &Element<V>)
src/map.rs:85
Method
eq
(&self, other: &Element)
src/text/mod.rs:379
Method
execute_op
(&mut self, op: Op<T>)
src/list.rs:229
Method
execute_op
(&mut self, op: Op<T>)
src/set.rs:141
Method
execute_op
(&mut self, op: Op)
src/text/mod.rs:214
Function
execute_remote_insert
()
tests/set.rs:88
Function
execute_remote_insert_dupe
()
tests/set.rs:111
Function
execute_remote_insert_value_already_exists
()
tests/set.rs:97
Function
execute_remote_remove
()
tests/set.rs:120
Function
execute_remote_remove_does_not_exist
()
tests/set.rs:132
Function
execute_remote_remove_dupe
()
tests/set.rs:153
Function
execute_remote_remove_some_dots_remain
()
tests/set.rs:142
Method
expecting
(&self, formatter: &mut fmt::Formatter)
src/map_tuple_vec.rs:47
Method
expecting
(&self, formatter: &mut fmt::Formatter)
src/sequence/uid.rs:244
Method
fmt
(&self, f: &mut fmt::Formatter)
src/sequence/uid.rs:210
Method
from
(_: ParseIntError)
src/error.rs:27
Method
from
(local_value: Vec<T>)
src/list.rs:167
Method
from
(local_value: HashMap<K, V>)
src/map.rs:158
Method
from
(local_value: &'a str)
src/text/mod.rs:126
Method
from_iter
(iter: I)
src/tree.rs:517
Method
from_state
Constructs a new Register from a RegisterState and an optional site id. If the site id is given, it must be nonzero.
src/register.rs:216
Method
from_state
Constructs a new `Counter` from a state and optional site id. If the site is given, it must be nonzero.
src/counter.rs:102
Method
from_str
Constructs and returns a new `Json` CRDT with site 1 from an unparsed JSON string.
src/json.rs:111
Method
from_str
(s: &str)
src/sequence/uid.rs:225
Method
from_str
Constructs and returns a new Text CRDT from a string. The Text has site id 1.
src/text/mod.rs:85
Method
from_vlq
(vlq: &[u8])
src/sequence/uid.rs:153
Method
generate_pos
Generates a number that falls between pos1 and pos2. It requires pos1 + 1 < pos2. Uses boundary+ strategy on odd levels and boundary+ strategy on even
src/sequence/uid.rs:117
Method
get
Returns a reference to the element at position `idx`. Returns None if idx is out-of-bounds.
src/list.rs:111
Method
get
Returns the counter value.
src/counter.rs:62
Function
get_elt_empty
()
src/tree.rs:584
Function
get_elt_nonempty
()
src/tree.rs:590
Function
get_elt_out_of_bounds
()
src/tree.rs:578
Method
get_idx
(&mut self, uid: &Uid)
src/list.rs:295
Function
get_idx_does_not_exist
()
src/tree.rs:615
Function
get_idx_element_exists
()
src/tree.rs:622
Method
get_mut
(&mut self, idx: usize)
src/list.rs:299
Method
get_mut_elt
(&mut self, idx: usize)
src/tree.rs:102
Method
get_pos
Gets the value for a particular level in a position if the position has a value for that level. A position's most significant bit is not part of any l
src/sequence/uid.rs:95
Method
id
(&self)
src/text/mod.rs:401
← previous
next →
101–200 of 513, ranked by callers