declaration_list
{ "{"
function_item
fn "fn"
identifier "is_empty"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
-> "->"
primitive_type "bool"
block
{ "{"
boolean_literal
false "false"
} "}"
associated_type (+37 nodes collapsed)
function_signature_item (+47 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Looks up a key and returns all matching values.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Useful for keyspaces where keys are hashes and collisions a"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The default implementation returns at most one value (from "...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " that support multiple values per key should override this.\n"
function_item (+87 nodes collapsed)
function_item (+126 nodes collapsed)
associated_type (+30 nodes collapsed)
function_signature_item (+27 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Called when the database has been invalidated via\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " [`crate::backing_storage::BackingStorage::invalidate`]\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " This typically means that we'll restart the process or `tur"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " database. If this happens, there's no point in writing anyt"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " during [`KeyValueDatabase::shutdown`].\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " This is a best-effort optimization hint, and the database m"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " continue file writes. This happens after the database is in"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " this to leave the database in a half-updated and corrupted "...
function_item
fn "fn"
identifier "prevent_writes"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
block
{ "{"
line_comment
// "//"
} "}"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Triggers compaction of the database.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Returns `Ok(true)` if compaction actually merged files, `Ok"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " to compact. The default implementation is a no-op.\n"
function_item
fn "fn"
identifier "compact"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
-> "->"
generic_type
type_identifier "Result"
type_arguments
< "<"
primitive_type "bool"
> ">"
block
{ "{"
call_expression
identifier "Ok"
arguments
( "("
boolean_literal
false "false"
) ")"
} "}"
function_item (+29 nodes collapsed)
} "}"