MCPcopy Create free account

hub / github.com/dcSpark/cddl-codegen / functions

Functions1,061 in github.com/dcSpark/cddl-codegen

↓ 1 callersFunctionwrapper_construct_reject
construct-reject for a bounded `@newtype` wrapper. The wrapper checks the *raw* `min_max` against the inner value (or its `.len()`), with no nint tran
src/emit_tests.rs:970
↓ 1 callersFunctionwrapper_roundtrip
Wrapper round-trip: one wire cycle with a valid inner value (bounds-respecting when `min_max` is present — the wrapper checks the raw measure, no nint
src/emit_tests.rs:747
Method_cbor_special_type
(&self)
src/intermediate.rs:1649
Function_enum_variants_common_constant_type
Some when all variants have the same FixedValue variant (e.g. all Uint, all Nint, all Text, etc) or None if they differ in any way (including encoding
src/intermediate.rs:3407
Function_field_name_from_comments
(comments: &Option<Comments<'_>>)
src/parsing.rs:1401
Method_for_rust_read
Function parameter TYPE by-non-mut-reference for read-only
src/intermediate.rs:1823
Method_is_serialize_multiline
(&self, types: &IntermediateTypes)
src/intermediate.rs:1653
Methodacquire
(limit: usize)
static/serialization_depth_guard.rs:18
Functionacquire_scratch_lock_serializes
()
src/tests/integration_tests.rs:65
Methodadd_imports_from_scope_refs
( scope: &ModuleScope, content: &mut codegen::Scope, imports: &BTreeMap<Mo
src/generation.rs:1000
Methodaliases
()
src/intermediate.rs:401
Functionall_supported_constructs_generate
()
src/tests/robustness_tests.rs:60
Functionall_supported_constructs_generate_all_profiles
()
src/tests/integration_tests.rs:4227
Methodannotate
(self, location: T)
static/error.rs:77
Functionarray_opt_fields
()
tests/core/tests.rs:580
Functionarray_opt_fields
()
tests/preserve-encodings/tests.rs:930
Functionassert_json_reject
Negative half of the wrapper tests above (which never feed one invalid input): each reject is asserted on an error-message SUBSTRING, not bare is_err(
tests/json/tests.rs:131
Functionbar
()
tests/rust-wasm-split/tests.rs:33
Functionbar
()
tests/core/tests.rs:288
Functionbareword_and_quoted_keys_converge
()
src/tests/robustness_tests.rs:251
Functionbareword_keyword_field_name_rejects_gracefully
()
src/tests/robustness_tests.rs:683
Methodbefore_str
(&self, is_result: bool)
src/generation.rs:458
Functionbounds
()
tests/core/tests.rs:648
Functionbounds
()
tests/preserve-encodings/tests.rs:1001
Functionbuild_array_key
A bareword array key → same field-identifier landing as the map key, different rep.
src/tests/identifier_hazard_tests.rs:95
Functionbuild_group_name
A plain group name referenced from another rule → the group registers as a struct whose name is the camel-cased hazard (the sole-use plain-group regis
src/tests/identifier_hazard_tests.rs:100
Functionbuild_map_key
A bareword map key → the emitted (snake_cased) struct FIELD identifier is the hazard.
src/tests/identifier_hazard_tests.rs:91
Functionbuild_name_directive
The `@name` directive value on a keyed field → renames the emitted field to the hazard (the CBOR wire key stays the integer `0`). The comment must sit
src/tests/identifier_hazard_tests.rs:105
Functionbuild_rule_name
The rule name of a composite rule, RECORD-STRUCT shape → the emitted struct name is the camel-cased hazard. A struct's serialize body never names its
src/tests/identifier_hazard_tests.rs:79
Functionbuild_rule_name_enum
The rule name of a type-choice rule, ENUM shape → the emitted `pub enum` name is the camel-cased hazard, and BOTH serialize and deserialize bodies nam
src/tests/identifier_hazard_tests.rs:87
Functionbytes_wrapper
()
tests/json/tests.rs:8
Methodcan_embed_fields
(types: &IntermediateTypes, ty: &ConceptualRustType)
src/intermediate.rs:2576
Functioncanonical_param
(cli: &Cli)
src/generation.rs:3845
Methodcapture_all
(&self)
src/generation.rs:7400
Methodcapture_ignore_all
(&self)
src/generation.rs:7408
Methodcapture_ignore_encodings
(&self)
src/generation.rs:7416
Functioncargo_manifest_disk_round_trip
()
src/tests/integration_tests.rs:1563
Functioncargo_manifest_rejects_unparseable_existing
()
src/tests/integration_tests.rs:2264
Functioncargo_toml_matrix
()
src/tests/snapshot_tests.rs:285
Functioncasing_test
()
tests/core/tests.rs:941
Functioncbor_in_cbor
()
tests/canonical/tests.rs:485
Functioncbor_in_cbor
()
tests/core/tests.rs:410
Functioncbor_in_cbor
()
tests/preserve-encodings/tests.rs:796
Functioncbor_read_len_ctor
How to construct a `CBORReadLen` from the freshly-read `len`. In preserve mode `len` is a `cbor_event::LenSz`, matching `CBORReadLen::new`. In non-pre
src/generation.rs:7250
Functioncddl_crate_conformance
()
tests/preserve-encodings/tests.rs:26
Functioncddl_oracle_dep_rev_matches_cargo_toml
()
src/tests/integration_tests.rs:2714
Functioncheck
(schema: schemars::Schema, value: serde_json::Value, label: &str)
tests/json/tests.rs:182
Functioncheck_rejects
(schema: schemars::Schema, value: serde_json::Value, label: &str)
tests/json/tests.rs:222
Methodcheck_used_as_key
( ty: &ConceptualRustType, types: &IntermediateTypes<'_>, used_as_key: &mu
src/intermediate.rs:731
Functioncheckout_hash
If you have multiple tests that use the same directory, please use different export_suffix for each one or else the tests will be flaky as they are ru
src/tests/integration_tests.rs:13
Functioncheckout_hash
Per-checkout scratch discriminator (concurrent runs from different checkouts must not share a path).
src/tests/identifier_hazard_tests.rs:291
Functionchunk_strings
(b: &[u8])
static/emit_tests_encoding_fidelity.rs:305
Functioncomment_dsl
()
src/tests/integration_tests.rs:2695
Methodcommon_import_rust
(&self)
src/cli.rs:138
Methodcommon_import_wasm
(&self)
src/cli.rs:147
Methodconstructor
(public raw: string)
cddl-matrix/project_golden_hex.ts:38
Functioncore_no_wasm
()
src/tests/integration_tests.rs:2631
Functioncore_with_wasm
()
src/tests/integration_tests.rs:2608
Functioncorpus_exclusive_range_upper_bound
()
src/tests/integration_tests.rs:2431
Functioncorpus_group_choice_map_key_written_and_verified
()
src/tests/integration_tests.rs:2565
Functioncorpus_inline_group_members_kept
()
src/tests/integration_tests.rs:2533
Functioncorpus_occurrence_bounds_enforced
()
src/tests/integration_tests.rs:2456
Functioncorpus_special_map_key_supported
()
src/tests/integration_tests.rs:2490
Functioncreate_serialize_impl
( ident: &RustIdent, rep: Option<Representation>, tag: Option<usize>, definite_len: &str,
src/generation.rs:4510
Functioncross_module_bar
()
tests/multifile/tests.rs:127
Functioncross_module_everything
()
tests/multifile/tests.rs:149
Functioncustom_serialization
()
tests/core/tests.rs:954
Functioncustom_serialization
()
tests/preserve-encodings/tests.rs:1429
Functioncustom_serialization_fresh_value_hex_boundary_len
()
tests/preserve-encodings/tests.rs:1481
Functioncustom_serialization_rejects_wrong_tag
()
tests/preserve-encodings/tests.rs:1457
Functioncustom_wrapper
()
tests/json/tests.rs:85
Functiondecode_conformance_replay
()
src/tests/integration_tests.rs:4672
Functiondeeply_nested
()
tests/canonical/tests.rs:254
Functiondeeply_nested
()
tests/preserve-encodings/tests.rs:269
Methoddefault
()
static/serialization_preserve.rs:88
Methoddefault
()
static/ordered_hash_map.rs:14
Methoddefault
()
src/intermediate.rs:160
Methoddefault
()
tests/extern-dep-crate/src/serialization.rs:110
Functiondefaults
()
tests/core/tests.rs:434
Functiondefaults
()
tests/preserve-encodings/tests.rs:886
Methodderef
(&self)
static/ordered_hash_map.rs:22
Methodderef
(&self)
src/intermediate.rs:1357
Methodderef
(&self)
tests/extern-dep-crate/src/ordered_hash_map.rs:14
Methodderef_mut
(&mut self)
static/ordered_hash_map.rs:28
Methodderef_mut
(&mut self)
tests/extern-dep-crate/src/ordered_hash_map.rs:23
Functionderived_header
(log_name: &str)
src/cargo_manifest.rs:512
Functionderived_template_has_header_and_live_keys_only
()
src/cargo_manifest.rs:1129
Functiondescribe
Describe an outcome for a failure message.
src/tests/dsl_position_tests.rs:480
Methoddeserialize
(raw: &mut Deserializer<R>)
static/serialization.rs:20
Methoddeserialize
(deserializer: D)
static/ordered_hash_map_json.rs:14
Methoddeserialize
(raw: &mut Deserializer<R>)
tests/extern-dep-crate/src/serialization.rs:17
Functiondeserialize_depth_limit_guards_recursion
()
src/tests/integration_tests.rs:4100
Functiondirectory_input_skips_non_cddl_files
()
src/api.rs:273
Functiondocs
()
tests/core/tests.rs:1034
Methoddrop
(&mut self)
static/serialization_depth_guard.rs:34
Functiondsl_directive_position_sweep
()
src/tests/dsl_position_tests.rs:492
Functionemit_tests_execute
()
src/tests/integration_tests.rs:2758
Functionemit_wasm_tests_execute
()
src/tests/integration_tests.rs:2830
Methodenc_conversion
(&self, expr: &str)
src/generation.rs:5113
Functionencoding_mutator_self_check
()
static/emit_tests_encoding_fidelity.rs:385
← previousnext →601–700 of 1,061, ranked by callers