MCPcopy Create free account

hub / github.com/agavra/imprint / functions

Functions50 in github.com/agavra/imprint

↓ 39 callersMethodadd_field
Adds a field to the record being built.
src/writer.rs:26
↓ 15 callersMethodbuild
Consumes the writer and builds an ImprintRecord.
src/writer.rs:32
↓ 11 callersMethodproject
(&self, field_ids: &[u16])
src/ops.rs:11
↓ 10 callersFunctionencode
Encode a u32 as a VarInt into the provided buffer
src/varint.rs:9
↓ 8 callersFunctioncreate_test_record
()
src/ops.rs:152
↓ 8 callersMethodtype_code
(&self)
src/types.rs:90
↓ 8 callersMethodwrite
(&self, buf: &mut BytesMut)
src/serde.rs:36
↓ 7 callersFunctiondecode
Decode a VarInt from the provided bytes, returning the value and number of bytes read
src/varint.rs:25
↓ 4 callersMethodget_raw_bytes
Get the raw bytes for a field without deserializing
src/types.rs:335
↓ 4 callersMethodget_value
Get a value by field ID, deserializing it on demand
src/types.rs:322
↓ 4 callersMethodmerge
(&self, other: &ImprintRecord)
src/ops.rs:85
↓ 3 callersMethodto_imprint
(&self)
benches/data.rs:33
↓ 1 callersFunctionarb_primitive_value
Helper function to generate primitive Values
src/serde.rs:493
↓ 1 callersFunctioncreate_overlapping_records
()
src/ops.rs:427
Functionarb_homogeneous_array
Helper function to generate homogeneous arrays of a specific type
src/serde.rs:508
Functionarb_homogeneous_map
( key_gen: BoxedStrategy<MapKey>, value_gen: BoxedStrategy<Value>, )
src/serde.rs:514
Functionarb_simple_row
Helper function to generate a row with a single field
src/serde.rs:524
Functionarb_value
()
src/serde.rs:538
Methodas_map_key
Try to interpret this Value as a valid MapKey.
src/types.rs:107
Methodeq
(&self, other: &MapKey)
src/types.rs:203
Methodfake
(size: usize)
benches/data.rs:19
Methodfixed_width
(&self)
src/types.rs:42
Methodfrom
(b: bool)
src/types.rs:113
Methodnew
(flags: u8)
src/types.rs:19
Methodnew
Creates a new ImprintWriter with the given schema ID.
src/writer.rs:18
Functionops_benchmark
(c: &mut Criterion)
benches/serde_bench.rs:30
Methodread
(type_code: TypeCode, mut bytes: Bytes)
src/serde.rs:152
Functionserde_benchmark
(c: &mut Criterion)
benches/serde_bench.rs:8
Functionshould_deduplicate_requested_fields
()
src/ops.rs:271
Functionshould_encode_known_values_correctly
()
src/varint.rs:99
Functionshould_handle_empty_projection
()
src/ops.rs:243
Functionshould_handle_error_cases
()
src/serde.rs:548
Functionshould_handle_error_cases_correctly
()
src/varint.rs:128
Functionshould_handle_projection_from_empty_record
()
src/ops.rs:284
Functionshould_handle_single_field_projection
()
src/ops.rs:209
Functionshould_ignore_nonexistent_fields
()
src/ops.rs:256
Functionshould_maintain_field_order_regardless_of_input
()
src/ops.rs:186
Functionshould_merge_records_with_distinct_fields
()
src/ops.rs:362
Functionshould_merge_records_with_overlapping_fields
()
src/ops.rs:406
Functionshould_preserve_all_fields_when_projecting_all
()
src/ops.rs:222
Functionshould_preserve_exact_byte_representation
()
src/ops.rs:302
Functionshould_preserve_schema_id_from_first_record
()
src/ops.rs:449
Functionshould_project_subset_of_fields
()
src/ops.rs:168
Functionshould_reduce_payload_size_when_projecting_subset
()
src/ops.rs:319
Functionshould_roundtrip_common_u32_values
()
src/varint.rs:69
Functiontest_duplicate_field_id
()
src/serde.rs:822
Functiontest_map_key_eq_value
()
src/types.rs:355
Functiontest_roundtrip_nested_record
()
src/serde.rs:593
Functiontest_value_eq_map_key
()
src/types.rs:360
Methodtry_from
(value: u8)
src/types.rs:55