| 1 | use craterust-analyzer cargo jsonschema 0.37.4 crate/::{ |
| 2 | content_encodingrust-analyzer cargo jsonschema 0.37.4 content_encoding/::{ContentEncodingCheckTyperust-analyzer cargo jsonschema 0.37.4 content_encoding/ContentEncodingCheckType#, ContentEncodingConverterTyperust-analyzer cargo jsonschema 0.37.4 content_encoding/ContentEncodingConverterType#}, |
| 3 | content_media_typerust-analyzer cargo jsonschema 0.37.4 content_media_type/::ContentMediaTypeCheckTyperust-analyzer cargo jsonschema 0.37.4 content_media_type/ContentMediaTypeCheckType#, |
| 4 | ecmarust-analyzer cargo jsonschema 0.37.4 ecma/, |
| 5 | keywordsrust-analyzer cargo jsonschema 0.37.4 keywords/::{ |
| 6 | selfrust-analyzer cargo jsonschema 0.37.4 keywords/, |
| 7 | customrust-analyzer cargo jsonschema 0.37.4 keywords/custom/::{CustomKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/custom/CustomKeyword#, KeywordFactoryrust-analyzer cargo jsonschema 0.37.4 keywords/custom/KeywordFactory#}, |
| 8 | formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/::Formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/Format#, |
| 9 | unevaluated_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/::PendingItemsValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/PendingItemsValidators#, |
| 10 | unevaluated_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/::PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#, |
| 11 | BoxedValidatorrust-analyzer cargo jsonschema 0.37.4 keywords/BoxedValidator#, BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#, Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#, |
| 12 | }, |
| 13 | noderust-analyzer cargo jsonschema 0.37.4 node/::{PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#, SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#}, |
| 14 | optionsrust-analyzer cargo jsonschema 0.37.4 options/::{PatternEngineOptionsrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#, ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#}, |
| 15 | pathsrust-analyzer cargo jsonschema 0.37.4 paths/::{Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#, LocationSegmentrust-analyzer cargo jsonschema 0.37.4 paths/LocationSegment#}, |
| 16 | typesrust-analyzer cargo jsonschema 0.37.4 types/::{JsonTyperust-analyzer cargo jsonschema 0.37.4 types/JsonType#, JsonTypeSetrust-analyzer cargo jsonschema 0.37.4 types/JsonTypeSet#}, |
| 17 | validatorrust-analyzer cargo jsonschema 0.37.4 validator/::Validaterust-analyzer cargo jsonschema 0.37.4 validator/Validate#, |
| 18 | ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#, Validatorrust-analyzer cargo jsonschema 0.37.4 validator/Validator#, |
| 19 | }; |
| 20 | use ahashrust-analyzer cargo ahash 0.8.12 crate/::{AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#, AHashSetrust-analyzer cargo ahash 0.8.12 hash_set/AHashSet#}; |
| 21 | use referencingrust-analyzer cargo referencing 0.37.4 crate/::{ |
| 22 | urirust-analyzer cargo referencing 0.37.4 uri/, Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, Listrust-analyzer cargo referencing 0.37.4 list/List#, Registryrust-analyzer cargo referencing 0.37.4 registry/Registry#, Resolvedrust-analyzer cargo referencing 0.37.4 resolver/Resolved#, Resolverrust-analyzer cargo referencing 0.37.4 resolver/Resolver#, Resourcerust-analyzer cargo referencing 0.37.4 resource/Resource#, ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#, Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#, Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#, |
| 23 | VocabularySetrust-analyzer cargo referencing 0.37.4 vocabularies/VocabularySet#, |
| 24 | }; |
| 25 | use serde_jsonrust-analyzer cargo serde_json 1.0.145 crate/::{Maprust-analyzer cargo serde_json 1.0.145 map/Map#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#}; |
| 26 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#, cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/::RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#, iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/::oncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/sources/once/once()., rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/::Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#, syncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std sync/::Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#}; |
| 27 | |
| 28 | const DEFAULT_SCHEMErust-analyzer cargo jsonschema 0.37.4 compiler/DEFAULT_SCHEME.: &str = "json-schema"; |
| 29 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) const DEFAULT_BASE_URIrust-analyzer cargo jsonschema 0.37.4 compiler/DEFAULT_BASE_URI.: &str = "json-schema:///"; |
| 30 | |
| 31 | /// Type alias for shared cache maps in compiler state. |
| 32 | type SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<K, V> = Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#<RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#<AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#<K, V>>>; |
| 33 | /// Type alias for shared sets in compiler state. |
| 34 | type SharedSetrust-analyzer cargo jsonschema 0.37.4 compiler/SharedSet#<T> = Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#<RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#<AHashSetrust-analyzer cargo ahash 0.8.12 hash_set/AHashSet#<T>>>; |
| 35 | |
| 36 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 37 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) struct LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey# { |
| 38 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) base_urirust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#base_uri.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 39 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#location.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<str>, |
| 40 | dynamic_scoperust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#dynamic_scope.: Listrust-analyzer cargo referencing 0.37.4 list/List#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 41 | } |
| 42 | |
| 43 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 44 | struct PropertyValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey# { |
| 45 | schema_ptrrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey#schema_ptr.: usize, |
| 46 | } |
| 47 | |
| 48 | impl PropertyValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey# { |
| 49 | fn newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[PropertyValidatorsPendingKey]new().(schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>) -> Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[PropertyValidatorsPendingKey] { |
| 50 | Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[PropertyValidatorsPendingKey] { |
| 51 | schema_ptrrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey#schema_ptr.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::from_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/from_ref().(schema) as usize, |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 57 | struct ItemsValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey# { |
| 58 | schema_ptrrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey#schema_ptr.: usize, |
| 59 | } |
| 60 | |
| 61 | impl ItemsValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey# { |
| 62 | fn newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[ItemsValidatorsPendingKey]new().(schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>) -> Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[ItemsValidatorsPendingKey] { |
| 63 | Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[ItemsValidatorsPendingKey] { |
| 64 | schema_ptrrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey#schema_ptr.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::from_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/from_ref().(schema) as usize, |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 70 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) struct AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey# { |
| 71 | urirust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#uri.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 72 | dynamic_scoperust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#dynamic_scope.: Listrust-analyzer cargo referencing 0.37.4 list/List#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 73 | } |
| 74 | |
| 75 | /// Shared caches reused across every `Context` derived from a schema root. |
| 76 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 77 | struct SharedContextStaterust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState# { |
| 78 | seenrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#seen.: SharedSetrust-analyzer cargo jsonschema 0.37.4 compiler/SharedSet#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>>, |
| 79 | location_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#location_nodes.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#>, |
| 80 | alias_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_nodes.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#, SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#>, |
| 81 | pending_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_nodes.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#>, |
| 82 | alias_placeholdersrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_placeholders.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#>, |
| 83 | pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#>, |
| 84 | pending_property_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators_by_schema.: |
| 85 | SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<PropertyValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey#, PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#>, |
| 86 | pending_items_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, PendingItemsValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/PendingItemsValidators#>, |
| 87 | pending_items_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators_by_schema.: |
| 88 | SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<ItemsValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey#, PendingItemsValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/PendingItemsValidators#>, |
| 89 | pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache.: SharedCacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedCache#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<str>, PatternCacheEntryrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#>, |
| 90 | uri_bufferrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#uri_buffer.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#<RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 91 | } |
| 92 | |
| 93 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 94 | struct PatternCacheEntryrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry# { |
| 95 | translatedrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#translated.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<str>, |
| 96 | fancyrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#fancy.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<fancy_regexrust-analyzer cargo fancy-regex 0.11.0 crate/::Regexrust-analyzer cargo fancy-regex 0.11.0 Regex#>>, |
| 97 | standardrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#standard.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<regexrust-analyzer cargo regex 1.12.2 crate/::Regexrust-analyzer cargo regex 1.12.2 regex/string/Regex#>>, |
| 98 | } |
| 99 | |
| 100 | impl SharedContextStaterust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState# { |
| 101 | fn newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState]new().() -> Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState] { |
| 102 | Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState] { |
| 103 | seenrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#seen.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashSetrust-analyzer cargo ahash 0.8.12 hash_set/AHashSet#::newrust-analyzer cargo ahash 0.8.12 hash_set/impl#[`AHashSet<T>`]new().())), |
| 104 | location_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#location_nodes.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 105 | alias_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_nodes.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 106 | pending_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_nodes.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 107 | alias_placeholdersrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_placeholders.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 108 | pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 109 | pending_property_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators_by_schema.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 110 | pending_items_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 111 | pending_items_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators_by_schema.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 112 | pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().())), |
| 113 | uri_bufferrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#uri_buffer.: Rcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/Rc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc rc/impl#[`Rc<T>`]new().(RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]new().())), |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /// Per-location view used while compiling schemas into validators. |
| 119 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 120 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) struct Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#<'a> { |
| 121 | configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config.: &'a ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#, |
| 122 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry.: &'a Registryrust-analyzer cargo referencing 0.37.4 registry/Registry#, |
| 123 | resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver.: Resolverrust-analyzer cargo referencing 0.37.4 resolver/Resolver#<'a>, |
| 124 | vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies.: VocabularySetrust-analyzer cargo referencing 0.37.4 vocabularies/VocabularySet#, |
| 125 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location.: Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#, |
| 126 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft.: Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, |
| 127 | sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared.: SharedContextStaterust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#, |
| 128 | } |
| 129 | |
| 130 | impl<'a> Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#<'a> { |
| 131 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]new().( |
| 132 | config: &'a ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#, |
| 133 | registry: &'a Registryrust-analyzer cargo referencing 0.37.4 registry/Registry#, |
| 134 | resolver: Resolverrust-analyzer cargo referencing 0.37.4 resolver/Resolver#<'a>, |
| 135 | vocabularies: VocabularySetrust-analyzer cargo referencing 0.37.4 vocabularies/VocabularySet#, |
| 136 | draft: Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, |
| 137 | location: Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#, |
| 138 | ) -> Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`] { |
| 139 | Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context# { |
| 140 | configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config., |
| 141 | registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry., |
| 142 | resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver., |
| 143 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location., |
| 144 | vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies., |
| 145 | draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., |
| 146 | sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared.: SharedContextStaterust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#::newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState]new().(), |
| 147 | } |
| 148 | } |
| 149 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn draftrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]draft().(&self) -> Draftrust-analyzer cargo referencing 0.37.4 specification/Draft# { |
| 150 | self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft. |
| 151 | } |
| 152 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn configrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]config().(&self) -> &ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions# { |
| 153 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config. |
| 154 | } |
| 155 | |
| 156 | /// Create a context for this schema. |
| 157 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn in_subresourcerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]in_subresource().( |
| 158 | &'a self, |
| 159 | resource: ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'_>, |
| 160 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#<'a>, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 161 | let resolver = self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..in_subresourcerust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]in_subresource().(resource)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 162 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context# { |
| 163 | configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config.: self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config., |
| 164 | registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry.: self.registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry., |
| 165 | resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver., |
| 166 | vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies.: self.vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies..clonerust-analyzer cargo referencing 0.37.4 vocabularies/impl#[VocabularySet][Clone]clone().(), |
| 167 | draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft.: resource.draftrust-analyzer cargo referencing 0.37.4 resource/impl#[`ResourceRef<'a>`]draft().(), |
| 168 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location.: self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location..clonerust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location][Clone]clone().(), |
| 169 | sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared.: self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..clonerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState][Clone]clone().(), |
| 170 | }) |
| 171 | } |
| 172 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn as_resource_refrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]as_resource_ref().<'r>(&'a self, contents: &'r Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) -> ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'r> { |
| 173 | self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft..detectrust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]detect().(contents).create_resource_refrust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]create_resource_ref().(contents) |
| 174 | } |
| 175 | |
| 176 | #[inline] |
| 177 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn new_at_locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]new_at_location().(&'a self, chunk: impl Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<LocationSegmentrust-analyzer cargo jsonschema 0.37.4 paths/LocationSegment#<'a>>) -> Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`] { |
| 178 | let location = self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location..joinrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]join().(chunk); |
| 179 | Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context# { |
| 180 | configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config.: self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config., |
| 181 | registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry.: self.registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry., |
| 182 | resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver.: self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..clonerust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`][Clone]clone().(), |
| 183 | vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies.: self.vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies..clonerust-analyzer cargo referencing 0.37.4 vocabularies/impl#[VocabularySet][Clone]clone().(), |
| 184 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location., |
| 185 | draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft.: self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., |
| 186 | sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared.: self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..clonerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState][Clone]clone().(), |
| 187 | } |
| 188 | } |
| 189 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn lookuprust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]lookup().(&'a self, reference: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Resolvedrust-analyzer cargo referencing 0.37.4 resolver/Resolved#<'a>, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 190 | self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..lookuprust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]lookup().(reference) |
| 191 | } |
| 192 | |
| 193 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn location_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location_cache_key().(&self) -> LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey# { |
| 194 | LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey# { |
| 195 | base_urirust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#base_uri.: self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().(), |
| 196 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#location.: self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location..as_arcrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]as_arc().(), |
| 197 | dynamic_scoperust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#dynamic_scope.: self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..dynamic_scoperust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]dynamic_scope().(), |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | fn alias_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]alias_cache_key().(&self, alias: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>) -> AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey# { |
| 202 | AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey# { |
| 203 | urirust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#uri.: alias, |
| 204 | dynamic_scoperust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#dynamic_scope.: self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..dynamic_scoperust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]dynamic_scope().(), |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn base_urirust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]base_uri().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>> { |
| 209 | let base_uri = self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().(); |
| 210 | if base_uri.schemerust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<T>`]scheme().().as_strrust-analyzer cargo fluent-uri 0.4.1 component/impl#[Scheme]as_str().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().DEFAULT_SCHEMErust-analyzer cargo jsonschema 0.37.4 compiler/DEFAULT_SCHEME. { |
| 211 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 212 | } else { |
| 213 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(base_uri) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn absolute_locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]absolute_location().(&self, location: &Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>> { |
| 218 | let base = self.base_urirust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]base_uri().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Try]branch().; |
| 219 | let mut buffer = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..uri_bufferrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#uri_buffer..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().(); |
| 220 | buffer.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]clear().(); |
| 221 | urirust-analyzer cargo referencing 0.37.4 uri/::encode_torust-analyzer cargo referencing 0.37.4 uri/encode_to().(location.as_strrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]as_str().(), &mut buffer); |
| 222 | let resolved = base.with_fragmentrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<T>`]with_fragment().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(urirust-analyzer cargo referencing 0.37.4 uri/::EncodedStringrust-analyzer cargo referencing 0.37.4 uri/EncodedString#::new_or_panicrust-analyzer cargo fluent-uri 0.4.1 pct_enc/impl#[`EStr<E>`]new_or_panic().(&buffer))); |
| 223 | buffer.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]clear().(); |
| 224 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().(resolved)) |
| 225 | } |
| 226 | |
| 227 | fn translated_patternrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]translated_pattern().(&self, pattern: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<str>, ()> { |
| 228 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry) = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(pattern) { |
| 229 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(&entry.translatedrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#translated.)); |
| 230 | } |
| 231 | let translated = Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::<str>::fromrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<B>`][`From<Cow<'a, B>>`]from().(ecmarust-analyzer cargo jsonschema 0.37.4 ecma/::to_rust_regexrust-analyzer cargo jsonschema 0.37.4 ecma/to_rust_regex().(pattern)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().); |
| 232 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().( |
| 233 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::fromrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<str>`][`From<&str>`]from().(pattern), |
| 234 | PatternCacheEntryrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry# { |
| 235 | translatedrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#translated.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(&translated), |
| 236 | fancyrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#fancy.: Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 237 | standardrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#standard.: Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 238 | }, |
| 239 | ); |
| 240 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(translated) |
| 241 | } |
| 242 | |
| 243 | fn is_known_keywordrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]is_known_keyword().(&self, keyword: &str) -> bool { |
| 244 | self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft..is_known_keywordrust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]is_known_keyword().(keyword) |
| 245 | } |
| 246 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn supports_adjacent_validationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]supports_adjacent_validation().(&self) -> bool { |
| 247 | !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7#) |
| 248 | } |
| 249 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn supports_integer_valued_numbersrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]supports_integer_valued_numbers().(&self) -> bool { |
| 250 | !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4#) |
| 251 | } |
| 252 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn validates_formats_by_defaultrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]validates_formats_by_default().(&self) -> bool { |
| 253 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..validate_formatsrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]validate_formats().().unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!( |
| 254 | self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., |
| 255 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 256 | )) |
| 257 | } |
| 258 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn are_unknown_formats_ignoredrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]are_unknown_formats_ignored().(&self) -> bool { |
| 259 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..are_unknown_formats_ignoredrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]are_unknown_formats_ignored().() |
| 260 | } |
| 261 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn with_resolver_and_draftrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]with_resolver_and_draft().( |
| 262 | &'a self, |
| 263 | resolver: Resolverrust-analyzer cargo referencing 0.37.4 resolver/Resolver#<'a>, |
| 264 | draft: Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, |
| 265 | vocabularies: VocabularySetrust-analyzer cargo referencing 0.37.4 vocabularies/VocabularySet#, |
| 266 | location: Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#, |
| 267 | ) -> Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#<'a> { |
| 268 | Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context# { |
| 269 | configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config.: self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config., |
| 270 | registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry.: self.registryrust-analyzer cargo jsonschema 0.37.4 compiler/Context#registry., |
| 271 | resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver., |
| 272 | draftrust-analyzer cargo jsonschema 0.37.4 compiler/Context#draft., |
| 273 | vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies., |
| 274 | locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location., |
| 275 | sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared.: self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..clonerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[SharedContextState][Clone]clone().(), |
| 276 | } |
| 277 | } |
| 278 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_content_media_type_checkrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_content_media_type_check().( |
| 279 | &self, |
| 280 | media_type: &str, |
| 281 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ContentMediaTypeCheckTyperust-analyzer cargo jsonschema 0.37.4 content_media_type/ContentMediaTypeCheckType#> { |
| 282 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..get_content_media_type_checkrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]get_content_media_type_check().(media_type) |
| 283 | } |
| 284 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_content_encoding_checkrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_content_encoding_check().( |
| 285 | &self, |
| 286 | content_encoding: &str, |
| 287 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ContentEncodingCheckTyperust-analyzer cargo jsonschema 0.37.4 content_encoding/ContentEncodingCheckType#> { |
| 288 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..content_encoding_checkrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]content_encoding_check().(content_encoding) |
| 289 | } |
| 290 | |
| 291 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_content_encoding_convertrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_content_encoding_convert().( |
| 292 | &self, |
| 293 | content_encoding: &str, |
| 294 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ContentEncodingConverterTyperust-analyzer cargo jsonschema 0.37.4 content_encoding/ContentEncodingConverterType#> { |
| 295 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..get_content_encoding_convertrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]get_content_encoding_convert().(content_encoding) |
| 296 | } |
| 297 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_keyword_factoryrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_keyword_factory().(&self, name: &str) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<dyn KeywordFactoryrust-analyzer cargo jsonschema 0.37.4 keywords/custom/KeywordFactory#>> { |
| 298 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..get_keyword_factoryrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]get_keyword_factory().(name) |
| 299 | } |
| 300 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_formatrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_format().(&self, format: &str) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<(&Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, &Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<dyn Formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/Format#>)> { |
| 301 | self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..get_formatrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]get_format().(format) |
| 302 | } |
| 303 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn is_circular_referencerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]is_circular_reference().( |
| 304 | &self, |
| 305 | reference: &str, |
| 306 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<bool, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 307 | let uri = self |
| 308 | .resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver. |
| 309 | .resolve_againstrust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]resolve_against().(&self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().().borrowrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<String>`]borrow().(), reference)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 310 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..seenrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#seen..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().containsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/set/impl#[`HashSet<T, S, A>`]contains().(&*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Deref]deref().uri)) |
| 311 | } |
| 312 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn mark_seenrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]mark_seen().(&self, reference: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 313 | let uri = self |
| 314 | .resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver. |
| 315 | .resolve_againstrust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]resolve_against().(&self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().().borrowrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<String>`]borrow().(), reference)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 316 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..seenrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#seen..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().insertrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/set/impl#[`HashSet<T, S, A>`]insert().(uri); |
| 317 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 318 | } |
| 319 | |
| 320 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn lookup_recursive_referencerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]lookup_recursive_reference().(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Resolvedrust-analyzer cargo referencing 0.37.4 resolver/Resolved#<'_>, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 321 | self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..lookup_recursive_refrust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]lookup_recursive_ref().() |
| 322 | } |
| 323 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn absolute_location_urirust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]absolute_location_uri().(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 324 | // Reuse the shared buffer to avoid allocations |
| 325 | let mut buffer = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..uri_bufferrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#uri_buffer..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().(); |
| 326 | buffer.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]clear().(); |
| 327 | buffer.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().('#'); |
| 328 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location..as_strrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]as_str().().is_emptyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]is_empty().() { |
| 329 | urirust-analyzer cargo referencing 0.37.4 uri/::encode_torust-analyzer cargo referencing 0.37.4 uri/encode_to().(self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location..as_strrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]as_str().(), &mut buffer); |
| 330 | } |
| 331 | let result = self |
| 332 | .resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver. |
| 333 | .resolve_againstrust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]resolve_against().(&self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().().borrowrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<String>`]borrow().(), &buffer); |
| 334 | buffer.clearrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]clear().(); |
| 335 | result |
| 336 | } |
| 337 | |
| 338 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn resolve_reference_urirust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]resolve_reference_uri().( |
| 339 | &self, |
| 340 | reference: &str, |
| 341 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, referencingrust-analyzer cargo referencing 0.37.4 crate/::Errorrust-analyzer cargo referencing 0.37.4 error/Error#> { |
| 342 | self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver. |
| 343 | .resolve_againstrust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]resolve_against().(&self.resolverrust-analyzer cargo jsonschema 0.37.4 compiler/Context#resolver..base_urirust-analyzer cargo referencing 0.37.4 resolver/impl#[`Resolver<'r>`]base_uri().().borrowrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<String>`]borrow().(), reference) |
| 344 | } |
| 345 | |
| 346 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cached_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_location_node().(&self, key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#> { |
| 347 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..location_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#location_nodes..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(key).clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 348 | } |
| 349 | |
| 350 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cache_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_location_node().(&self, key: LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, node: SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#) { |
| 351 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..location_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#location_nodes..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(key, node); |
| 352 | } |
| 353 | |
| 354 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cached_alias_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_alias_node().(&self, key: &AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#> { |
| 355 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..alias_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_nodes..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(key).clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 356 | } |
| 357 | |
| 358 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cache_alias_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_alias_node().(&self, key: AliasCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/AliasCacheKey#, node: SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#) { |
| 359 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..alias_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_nodes..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(key, node); |
| 360 | } |
| 361 | |
| 362 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cached_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_pending_location_node().( |
| 363 | &self, |
| 364 | key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, |
| 365 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#> { |
| 366 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pending_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_nodes..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(key).clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 367 | } |
| 368 | |
| 369 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cache_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_pending_location_node().( |
| 370 | &self, |
| 371 | key: LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, |
| 372 | node: PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#, |
| 373 | ) { |
| 374 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pending_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_nodes..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(key, node); |
| 375 | } |
| 376 | |
| 377 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn remove_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_pending_location_node().(&self, key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#) { |
| 378 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pending_nodesrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_nodes..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().removerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]remove().(key); |
| 379 | } |
| 380 | |
| 381 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_pending_property_validators().( |
| 382 | &self, |
| 383 | key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, |
| 384 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#> { |
| 385 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 386 | .pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators. |
| 387 | .borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().() |
| 388 | .getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(key) |
| 389 | .clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 390 | } |
| 391 | |
| 392 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cache_pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_pending_property_validators().( |
| 393 | &self, |
| 394 | key: LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, |
| 395 | pending: PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#, |
| 396 | ) { |
| 397 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 398 | .pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators. |
| 399 | .borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().() |
| 400 | .insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(key, pending); |
| 401 | } |
| 402 | |
| 403 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn remove_pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_pending_property_validators().(&self, key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#) { |
| 404 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 405 | .pending_property_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators. |
| 406 | .borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().() |
| 407 | .removerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]remove().(key); |
| 408 | } |
| 409 | |
| 410 | fn property_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]property_schema_key().(schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>) -> PropertyValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey# { |
| 411 | PropertyValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/PropertyValidatorsPendingKey#::newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[PropertyValidatorsPendingKey]new().(schema) |
| 412 | } |
| 413 | |
| 414 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_pending_property_validators_for_schemarust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_pending_property_validators_for_schema().( |
| 415 | &self, |
| 416 | schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>, |
| 417 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#> { |
| 418 | let key = Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]::property_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]property_schema_key().(schema); |
| 419 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 420 | .pending_property_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators_by_schema. |
| 421 | .borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().() |
| 422 | .getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(&key) |
| 423 | .clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 424 | } |
| 425 | |
| 426 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cache_pending_property_validators_for_schemarust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_pending_property_validators_for_schema().( |
| 427 | &self, |
| 428 | schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>, |
| 429 | pending: PendingPropertyValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/PendingPropertyValidators#, |
| 430 | ) { |
| 431 | let key = Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]::property_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]property_schema_key().(schema); |
| 432 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 433 | .pending_property_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators_by_schema. |
| 434 | .borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().() |
| 435 | .insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(key, pending); |
| 436 | } |
| 437 | |
| 438 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn remove_pending_property_validators_for_schemarust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_pending_property_validators_for_schema().( |
| 439 | &self, |
| 440 | schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>, |
| 441 | ) { |
| 442 | let key = Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]::property_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]property_schema_key().(schema); |
| 443 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 444 | .pending_property_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_property_validators_by_schema. |
| 445 | .borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().() |
| 446 | .removerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]remove().(&key); |
| 447 | } |
| 448 | |
| 449 | fn items_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]items_schema_key().(schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>) -> ItemsValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey# { |
| 450 | ItemsValidatorsPendingKeyrust-analyzer cargo jsonschema 0.37.4 compiler/ItemsValidatorsPendingKey#::newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[ItemsValidatorsPendingKey]new().(schema) |
| 451 | } |
| 452 | |
| 453 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_pending_items_validators_for_schemarust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_pending_items_validators_for_schema().( |
| 454 | &self, |
| 455 | schema: &Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>, |
| 456 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingItemsValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/PendingItemsValidators#> { |
| 457 | let key = Selfrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]::items_schema_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]items_schema_key().(schema); |
| 458 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 459 | .pending_items_validators_by_schemarust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators_by_schema. |
| 460 | .borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().() |
| 461 | .getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(&key) |
| 462 | .clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 463 | } |
| 464 | |
| 465 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_pending_items_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_pending_items_validators().( |
| 466 | &self, |
| 467 | key: &LocationCacheKeyrust-analyzer cargo jsonschema 0.37.4 compiler/LocationCacheKey#, |
| 468 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingItemsValidatorsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/PendingItemsValidators#> { |
| 469 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 470 | .pending_items_validatorsrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pending_items_validators. |
| 471 | .borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().() |
| 472 | .getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(key) |
| 473 | .clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 474 | } |
| 475 | |
| 476 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn cached_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_alias_placeholder().( |
| 477 | &self, |
| 478 | alias: &Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 479 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#> { |
| 480 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..alias_placeholdersrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_placeholders..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(alias).clonedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]cloned().() |
| 481 | } |
| 482 | |
| 483 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn set_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]set_alias_placeholder().(&self, alias: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, node: PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#) { |
| 484 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared. |
| 485 | .alias_placeholdersrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_placeholders. |
| 486 | .borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().() |
| 487 | .insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(alias, node); |
| 488 | } |
| 489 | |
| 490 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn remove_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_alias_placeholder().(&self, alias: &Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>) { |
| 491 | self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..alias_placeholdersrust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#alias_placeholders..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().removerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]remove().(alias); |
| 492 | } |
| 493 | |
| 494 | /// Get a cached compiled regex, or compile and cache it if not present. |
| 495 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_or_compile_regexrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_or_compile_regex().( |
| 496 | &self, |
| 497 | pattern: &str, |
| 498 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<fancy_regexrust-analyzer cargo fancy-regex 0.11.0 crate/::Regexrust-analyzer cargo fancy-regex 0.11.0 Regex#>, ()> { |
| 499 | let translated = self.translated_patternrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]translated_pattern().(pattern)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 500 | { |
| 501 | let cache = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().(); |
| 502 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry) = cache.getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(pattern) { |
| 503 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(regex) = &entry.fancyrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#fancy. { |
| 504 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(regex)); |
| 505 | } |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | let (backtrack_limit, size_limit, dfa_size_limit) = match self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..pattern_optionsrust-analyzer cargo jsonschema 0.37.4 options/impl#[ValidationOptions]pattern_options().() { |
| 510 | PatternEngineOptionsrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#::FancyRegexrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#FancyRegex# { |
| 511 | backtrack_limitrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#FancyRegex#backtrack_limit., |
| 512 | size_limitrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#FancyRegex#size_limit., |
| 513 | dfa_size_limitrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#FancyRegex#dfa_size_limit., |
| 514 | } => (backtrack_limit, size_limit, dfa_size_limit), |
| 515 | PatternEngineOptionsrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#::Regexrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#Regex# { .. } => (Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#), |
| 516 | }; |
| 517 | |
| 518 | let mut builder = fancy_regexrust-analyzer cargo fancy-regex 0.11.0 crate/::RegexBuilderrust-analyzer cargo fancy-regex 0.11.0 RegexBuilder#::newrust-analyzer cargo fancy-regex 0.11.0 impl#[RegexBuilder]new().(translated.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][`AsRef<T>`]as_ref().()); |
| 519 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(limit) = backtrack_limit { |
| 520 | builder.backtrack_limitrust-analyzer cargo fancy-regex 0.11.0 impl#[RegexBuilder]backtrack_limit().(limit); |
| 521 | } |
| 522 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(limit) = size_limit { |
| 523 | builder.delegate_size_limitrust-analyzer cargo fancy-regex 0.11.0 impl#[RegexBuilder]delegate_size_limit().(limit); |
| 524 | } |
| 525 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(limit) = dfa_size_limit { |
| 526 | builder.delegate_dfa_size_limitrust-analyzer cargo fancy-regex 0.11.0 impl#[RegexBuilder]delegate_dfa_size_limit().(limit); |
| 527 | } |
| 528 | let regex = Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().(builder.buildrust-analyzer cargo fancy-regex 0.11.0 impl#[RegexBuilder]build().().map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|_| ())?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().); |
| 529 | |
| 530 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry) = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().get_mutrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get_mut().(pattern) { |
| 531 | entry.fancyrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#fancy. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(®ex)); |
| 532 | } |
| 533 | |
| 534 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(regex) |
| 535 | } |
| 536 | |
| 537 | /// Get a cached compiled standard regex, or compile and cache it if not present. |
| 538 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_or_compile_standard_regexrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_or_compile_standard_regex().( |
| 539 | &self, |
| 540 | pattern: &str, |
| 541 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<regexrust-analyzer cargo regex 1.12.2 crate/::Regexrust-analyzer cargo regex 1.12.2 regex/string/Regex#>, ()> { |
| 542 | let translated = self.translated_patternrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]translated_pattern().(pattern)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 543 | { |
| 544 | let cache = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().(); |
| 545 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry) = cache.getrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get().(pattern) { |
| 546 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(regex) = &entry.standardrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#standard. { |
| 547 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(regex)); |
| 548 | } |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | let (size_limit, dfa_size_limit) = match self.configrust-analyzer cargo jsonschema 0.37.4 compiler/Context#config..pattern_optionsrust-analyzer cargo jsonschema 0.37.4 options/impl#[ValidationOptions]pattern_options().() { |
| 553 | PatternEngineOptionsrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#::Regexrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#Regex# { |
| 554 | size_limitrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#Regex#size_limit., |
| 555 | dfa_size_limitrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#Regex#dfa_size_limit., |
| 556 | } => (size_limit, dfa_size_limit), |
| 557 | PatternEngineOptionsrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#::FancyRegexrust-analyzer cargo jsonschema 0.37.4 options/PatternEngineOptions#FancyRegex# { .. } => (Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#), |
| 558 | }; |
| 559 | |
| 560 | let mut builder = regexrust-analyzer cargo regex 1.12.2 crate/::RegexBuilderrust-analyzer cargo regex 1.12.2 builders/string/RegexBuilder#::newrust-analyzer cargo regex 1.12.2 builders/string/impl#[RegexBuilder]new().(translated.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][`AsRef<T>`]as_ref().()); |
| 561 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(limit) = size_limit { |
| 562 | builder.size_limitrust-analyzer cargo regex 1.12.2 builders/string/impl#[RegexBuilder]size_limit().(limit); |
| 563 | } |
| 564 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(limit) = dfa_size_limit { |
| 565 | builder.dfa_size_limitrust-analyzer cargo regex 1.12.2 builders/string/impl#[RegexBuilder]dfa_size_limit().(limit); |
| 566 | } |
| 567 | let regex = Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().(builder.buildrust-analyzer cargo regex 1.12.2 builders/string/impl#[RegexBuilder]build().().map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|_| ())?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().); |
| 568 | |
| 569 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry) = self.sharedrust-analyzer cargo jsonschema 0.37.4 compiler/Context#shared..pattern_cacherust-analyzer cargo jsonschema 0.37.4 compiler/SharedContextState#pattern_cache..borrow_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow_mut().().get_mutrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]get_mut().(pattern) { |
| 570 | entry.standardrust-analyzer cargo jsonschema 0.37.4 compiler/PatternCacheEntry#standard. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(®ex)); |
| 571 | } |
| 572 | |
| 573 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(regex) |
| 574 | } |
| 575 | |
| 576 | /// Lookup a reference that is potentially recursive and return already |
| 577 | /// compiled nodes when available. |
| 578 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn lookup_maybe_recursiverust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]lookup_maybe_recursive().( |
| 579 | &self, |
| 580 | reference: &str, |
| 581 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn Validaterust-analyzer cargo jsonschema 0.37.4 validator/Validate#>>, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'static>> { |
| 582 | if self.is_circular_referencerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]is_circular_reference().(reference)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch(). { |
| 583 | let uri = self |
| 584 | .resolve_reference_urirust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]resolve_reference_uri().(reference) |
| 585 | .map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#::fromrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'_>`][`From<referencing::Error>`]from().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 586 | let key = self.alias_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]alias_cache_key().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(&uri)); |
| 587 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(node) = self.cached_alias_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_alias_node().(&key) { |
| 588 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T>`]new().(node))); |
| 589 | } |
| 590 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(node) = self.cached_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_alias_placeholder().(&uri) { |
| 591 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T>`]new().(node))); |
| 592 | } |
| 593 | } |
| 594 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 595 | } |
| 596 | |
| 597 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location().(&self) -> &Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location# { |
| 598 | &self.locationrust-analyzer cargo jsonschema 0.37.4 compiler/Context#location. |
| 599 | } |
| 600 | |
| 601 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&self, vocabulary: &Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#) -> bool { |
| 602 | if self.draftrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]draft().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#lt().Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# || vocabulary rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Corerust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Core# { |
| 603 | true |
| 604 | } else { |
| 605 | self.vocabulariesrust-analyzer cargo jsonschema 0.37.4 compiler/Context#vocabularies..containsrust-analyzer cargo referencing 0.37.4 vocabularies/impl#[VocabularySet]contains().(vocabulary) |
| 606 | } |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn build_validatorrust-analyzer cargo jsonschema 0.37.4 compiler/build_validator().( |
| 611 | config: &ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#, |
| 612 | schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, |
| 613 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Validatorrust-analyzer cargo jsonschema 0.37.4 validator/Validator#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'static>> { |
| 614 | let draft = config.draft_forrust-analyzer cargo jsonschema 0.37.4 options/impl#[ValidationOptions]draft_for().(schema)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 615 | let resource_ref = draft.create_resource_refrust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]create_resource_ref().(schema); |
| 616 | let resource = draft.create_resourcerust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]create_resource().(schema.clonerust-analyzer cargo serde_json 1.0.145 value/impl#[Value][Clone]clone().()); |
| 617 | let base_uri = if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(base_uri) = config.base_urirust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#base_uri..as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().() { |
| 618 | urirust-analyzer cargo referencing 0.37.4 uri/::from_strrust-analyzer cargo referencing 0.37.4 uri/from_str().(base_uri)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch(). |
| 619 | } else { |
| 620 | urirust-analyzer cargo referencing 0.37.4 uri/::from_strrust-analyzer cargo referencing 0.37.4 uri/from_str().(resource_ref.idrust-analyzer cargo referencing 0.37.4 resource/impl#[`ResourceRef<'a>`]id().().unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(DEFAULT_BASE_URIrust-analyzer cargo jsonschema 0.37.4 compiler/DEFAULT_BASE_URI.))?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch(). |
| 621 | }; |
| 622 | |
| 623 | // Build a registry & resolver needed for validator compilation |
| 624 | // Clone resources to drain them without mutating the original config |
| 625 | let pairs = collect_resource_pairsrust-analyzer cargo jsonschema 0.37.4 compiler/collect_resource_pairs().(base_uri.as_strrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<T>`]as_str().(), resource, config.resourcesrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#resources..clonerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`][Clone]clone().()); |
| 626 | |
| 627 | let registry = if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref registry) = config.registryrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#registry. { |
| 628 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().(registry.clonerust-analyzer cargo referencing 0.37.4 registry/impl#[Registry][Clone]clone().().try_with_resources_and_retrieverrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]try_with_resources_and_retriever().( |
| 629 | pairs, |
| 630 | &*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Deref]deref().config.retrieverrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#retriever., |
| 631 | draft, |
| 632 | )?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().) |
| 633 | } else { |
| 634 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().( |
| 635 | Registryrust-analyzer cargo referencing 0.37.4 registry/Registry#::optionsrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]options().() |
| 636 | .draftrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<R>`]draft().(draft) |
| 637 | .retrieverrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<Arc<dyn Retrieve + 'static>>`]retriever().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(&config.retrieverrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#retriever.)) |
| 638 | .buildrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<Arc<dyn Retrieve + 'static>>`]build().(pairs)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 639 | ) |
| 640 | }; |
| 641 | let vocabularies = registry.find_vocabulariesrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]find_vocabularies().(draft, schema); |
| 642 | let resolver = registry.resolverrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]resolver().(base_uri); |
| 643 | |
| 644 | let ctx = Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#::newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]new().( |
| 645 | config, |
| 646 | ®istry, |
| 647 | resolver, |
| 648 | vocabularies, |
| 649 | draft, |
| 650 | Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#::newrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]new().(), |
| 651 | ); |
| 652 | |
| 653 | // Validate the schema itself |
| 654 | if config.validate_schemarust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#validate_schema. { |
| 655 | validate_schemarust-analyzer cargo jsonschema 0.37.4 compiler/validate_schema().(draft, schema)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 656 | } |
| 657 | |
| 658 | // Finally, compile the validator |
| 659 | let root = compilerust-analyzer cargo jsonschema 0.37.4 compiler/compile().(&ctx, resource_ref).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#::to_ownedrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'a>`]to_owned().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 660 | let draft = config.draftrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]draft().(); |
| 661 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Validatorrust-analyzer cargo jsonschema 0.37.4 validator/Validator# { rootrust-analyzer cargo jsonschema 0.37.4 validator/Validator#root., draftrust-analyzer cargo jsonschema 0.37.4 validator/Validator#draft. }) |
| 662 | } |
| 663 | |
| 664 | #[cfg(feature = "resolve-async")] |
| 665 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) async fn build_validator_asyncrust-analyzer cargo jsonschema 0.37.4 compiler/build_validator_async().( |
| 666 | config: &ValidationOptionsrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<dyn referencingrust-analyzer cargo referencing 0.37.4 crate/::AsyncRetrieverust-analyzer cargo referencing 0.37.4 retriever/AsyncRetrieve#>>, |
| 667 | schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, |
| 668 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Validatorrust-analyzer cargo jsonschema 0.37.4 validator/Validator#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'static>> { |
| 669 | let draft = config.draft_forrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<Arc<dyn AsyncRetrieve + 'static>>`]draft_for().(schema).rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 670 | let resource_ref = draft.create_resource_refrust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]create_resource_ref().(schema); |
| 671 | let resource = draft.create_resourcerust-analyzer cargo referencing 0.37.4 specification/impl#[Draft]create_resource().(schema.clonerust-analyzer cargo serde_json 1.0.145 value/impl#[Value][Clone]clone().()); |
| 672 | let base_uri = if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(base_uri) = config.base_urirust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#base_uri..as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().() { |
| 673 | urirust-analyzer cargo referencing 0.37.4 uri/::from_strrust-analyzer cargo referencing 0.37.4 uri/from_str().(base_uri)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch(). |
| 674 | } else { |
| 675 | urirust-analyzer cargo referencing 0.37.4 uri/::from_strrust-analyzer cargo referencing 0.37.4 uri/from_str().(resource_ref.idrust-analyzer cargo referencing 0.37.4 resource/impl#[`ResourceRef<'a>`]id().().unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(DEFAULT_BASE_URIrust-analyzer cargo jsonschema 0.37.4 compiler/DEFAULT_BASE_URI.))?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch(). |
| 676 | }; |
| 677 | |
| 678 | // Clone resources to drain them without mutating the original config |
| 679 | let pairs = collect_resource_pairsrust-analyzer cargo jsonschema 0.37.4 compiler/collect_resource_pairs().(base_uri.as_strrust-analyzer cargo fluent-uri 0.4.1 imp/impl#[`Uri<T>`]as_str().(), resource, config.resourcesrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#resources..clonerust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`][Clone]clone().()); |
| 680 | |
| 681 | let registry = if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref registry) = config.registryrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#registry. { |
| 682 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().( |
| 683 | registry |
| 684 | .clonerust-analyzer cargo referencing 0.37.4 registry/impl#[Registry][Clone]clone().() |
| 685 | .try_with_resources_and_retriever_asyncrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]try_with_resources_and_retriever_async().(pairs, &*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Deref]deref().config.retrieverrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#retriever., draft) |
| 686 | .rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 687 | ) |
| 688 | } else { |
| 689 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().( |
| 690 | Registryrust-analyzer cargo referencing 0.37.4 registry/Registry#::optionsrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]options().() |
| 691 | .async_retrieverrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<Arc<dyn Retrieve + 'static>>`]async_retriever().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(&config.retrieverrust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#retriever.)) |
| 692 | .draftrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<R>`]draft().(draft) |
| 693 | .buildrust-analyzer cargo referencing 0.37.4 registry/impl#[`RegistryOptions<Arc<dyn AsyncRetrieve + 'static>>`]build().(pairs) |
| 694 | .rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 695 | ) |
| 696 | }; |
| 697 | |
| 698 | let vocabularies = registry.find_vocabulariesrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]find_vocabularies().(draft, schema); |
| 699 | let resolver = registry.resolverrust-analyzer cargo referencing 0.37.4 registry/impl#[Registry]resolver().(base_uri); |
| 700 | // HACK: `ValidationOptions` struct has a default type parameter as `Arc<dyn Retrieve>` and to |
| 701 | // avoid propagating types everywhere in `Context`, it is easier to just replace the |
| 702 | // retriever to one that implements `Retrieve`, as it is not used anymore anyway. |
| 703 | let config_with_blocking_retriever = config |
| 704 | .clonerust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`][Clone]clone().() |
| 705 | .with_blocking_retrieverrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<Arc<dyn AsyncRetrieve + 'static>>`]with_blocking_retriever().(craterust-analyzer cargo jsonschema 0.37.4 crate/::retrieverrust-analyzer cargo jsonschema 0.37.4 retriever/::DefaultRetrieverrust-analyzer cargo jsonschema 0.37.4 retriever/DefaultRetriever#); |
| 706 | let ctx = Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#::newrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]new().( |
| 707 | &config_with_blocking_retriever, |
| 708 | ®istry, |
| 709 | resolver, |
| 710 | vocabularies, |
| 711 | draft, |
| 712 | Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#::newrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]new().(), |
| 713 | ); |
| 714 | |
| 715 | if config.validate_schemarust-analyzer cargo jsonschema 0.37.4 options/ValidationOptions#validate_schema. { |
| 716 | validate_schemarust-analyzer cargo jsonschema 0.37.4 compiler/validate_schema().(draft, schema)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 717 | } |
| 718 | |
| 719 | let root = compilerust-analyzer cargo jsonschema 0.37.4 compiler/compile().(&ctx, resource_ref).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#::to_ownedrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'a>`]to_owned().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 720 | let draft = config.draftrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]draft().(); |
| 721 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Validatorrust-analyzer cargo jsonschema 0.37.4 validator/Validator# { rootrust-analyzer cargo jsonschema 0.37.4 validator/Validator#root., draftrust-analyzer cargo jsonschema 0.37.4 validator/Validator#draft. }) |
| 722 | } |
| 723 | |
| 724 | fn annotations_to_valuerust-analyzer cargo jsonschema 0.37.4 compiler/annotations_to_value().(annotations: AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>) -> Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Valuerust-analyzer cargo serde_json 1.0.145 value/Value#> { |
| 725 | let mut object = Maprust-analyzer cargo serde_json 1.0.145 map/Map#::with_capacityrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]with_capacity().(annotations.lenrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`]len().()); |
| 726 | for (key, value) in annotations { |
| 727 | object.insertrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]insert().(key, value); |
| 728 | } |
| 729 | Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T>`]new().(Valuerust-analyzer cargo serde_json 1.0.145 value/Value#::Objectrust-analyzer cargo serde_json 1.0.145 value/Value#Object#(object)) |
| 730 | } |
| 731 | |
| 732 | fn collect_resource_pairsrust-analyzer cargo jsonschema 0.37.4 compiler/collect_resource_pairs().( |
| 733 | base_uri: &str, |
| 734 | resource: Resourcerust-analyzer cargo referencing 0.37.4 resource/Resource#, |
| 735 | resources: AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Resourcerust-analyzer cargo referencing 0.37.4 resource/Resource#>, |
| 736 | ) -> impl IntoIteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#Item# = (Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'_, str>, Resourcerust-analyzer cargo referencing 0.37.4 resource/Resource#)> { |
| 737 | oncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/sources/once/once().((Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Borrowedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Borrowed#(base_uri), resource)).chainrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#chain().( |
| 738 | resources |
| 739 | .into_iterrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`][IntoIterator]into_iter().() |
| 740 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|(uri, resource)| (Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(uri), resource)), |
| 741 | ) |
| 742 | } |
| 743 | |
| 744 | fn validate_schemarust-analyzer cargo jsonschema 0.37.4 compiler/validate_schema().(draft: Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'static>> { |
| 745 | // Boolean schemas are always valid per the spec, skip validation |
| 746 | if schema.is_booleanrust-analyzer cargo serde_json 1.0.145 value/impl#[Value]is_boolean().() { |
| 747 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()); |
| 748 | } |
| 749 | |
| 750 | // For objects, we can skip validation if they're empty (always valid) |
| 751 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(obj) = schema.as_objectrust-analyzer cargo serde_json 1.0.145 value/impl#[Value]as_object().() { |
| 752 | if obj.is_emptyrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]is_empty().() { |
| 753 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()); |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | let validator = craterust-analyzer cargo jsonschema 0.37.4 crate/::metarust-analyzer cargo jsonschema 0.37.4 meta/::validator_for_draftrust-analyzer cargo jsonschema 0.37.4 meta/validator_for_draft().(draft); |
| 758 | if let Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error) = validator.validaterust-analyzer cargo jsonschema 0.37.4 validator/impl#[Validator]validate().(schema) { |
| 759 | return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error.to_ownedrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'a>`]to_owned().()); |
| 760 | } |
| 761 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 762 | } |
| 763 | |
| 764 | /// Compile a JSON Schema instance to a tree of nodes. |
| 765 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn compilerust-analyzer cargo jsonschema 0.37.4 compiler/compile().<'a>( |
| 766 | ctx: &Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#, |
| 767 | resource: ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'a>, |
| 768 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'a>> { |
| 769 | let ctx = ctx.in_subresourcerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]in_subresource().(resource)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 770 | compile_with_internalrust-analyzer cargo jsonschema 0.37.4 compiler/compile_with_internal().(&ctx, resource, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 771 | } |
| 772 | |
| 773 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn compile_with_aliasrust-analyzer cargo jsonschema 0.37.4 compiler/compile_with_alias().<'a>( |
| 774 | ctx: &Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#, |
| 775 | resource: ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'a>, |
| 776 | alias: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>, |
| 777 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'a>> { |
| 778 | compile_with_internalrust-analyzer cargo jsonschema 0.37.4 compiler/compile_with_internal().(ctx, resource, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(alias)) |
| 779 | } |
| 780 | |
| 781 | #[allow(clippy::needless_pass_by_value)] |
| 782 | fn compile_with_internalrust-analyzer cargo jsonschema 0.37.4 compiler/compile_with_internal().<'a>( |
| 783 | ctx: &Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#, |
| 784 | resource: ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'a>, |
| 785 | alias: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Urirust-analyzer cargo fluent-uri 0.4.1 imp/Uri#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>>, |
| 786 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'a>> { |
| 787 | // Check if this alias already has a cached node |
| 788 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(alias_key) = alias.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().() { |
| 789 | let scoped_key = ctx.alias_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]alias_cache_key().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(alias_key)); |
| 790 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(existing_alias) = ctx.cached_alias_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_alias_node().(&scoped_key) { |
| 791 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(existing_alias); |
| 792 | } |
| 793 | } |
| 794 | |
| 795 | // Check location-based cache |
| 796 | let key = ctx.location_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location_cache_key().(); |
| 797 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(existing) = ctx.cached_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_location_node().(&key) { |
| 798 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(existing); |
| 799 | } |
| 800 | |
| 801 | // Check if there's a pending node (circular reference being compiled) |
| 802 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(pending) = ctx.cached_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cached_pending_location_node().(&key) { |
| 803 | // If the node has already been initialized, reuse it. Otherwise, we rely on the |
| 804 | // in-flight compilation to finish initialization and continue compiling here. |
| 805 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(node) = pending.getrust-analyzer cargo jsonschema 0.37.4 node/impl#[PendingSchemaNode]get().() { |
| 806 | return Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(node); |
| 807 | } |
| 808 | } |
| 809 | |
| 810 | // Create placeholder for circular reference detection |
| 811 | let placeholder = PendingSchemaNoderust-analyzer cargo jsonschema 0.37.4 node/PendingSchemaNode#::newrust-analyzer cargo jsonschema 0.37.4 node/impl#[PendingSchemaNode]new().(); |
| 812 | ctx.cache_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_pending_location_node().(key.clonerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[LocationCacheKey][Clone]clone().(), placeholder.clonerust-analyzer cargo jsonschema 0.37.4 node/impl#[PendingSchemaNode][Clone]clone().()); |
| 813 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(alias_key) = alias.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().() { |
| 814 | ctx.set_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]set_alias_placeholder().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(alias_key), placeholder.clonerust-analyzer cargo jsonschema 0.37.4 node/impl#[PendingSchemaNode][Clone]clone().()); |
| 815 | } |
| 816 | |
| 817 | // Compile the schema |
| 818 | match compile_without_cacherust-analyzer cargo jsonschema 0.37.4 compiler/compile_without_cache().(ctx, resource) { |
| 819 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(node) => { |
| 820 | // Initialize the placeholder with the compiled node |
| 821 | placeholder.initializerust-analyzer cargo jsonschema 0.37.4 node/impl#[PendingSchemaNode]initialize().(&node); |
| 822 | |
| 823 | // Remove from pending cache and add to final cache |
| 824 | ctx.remove_pending_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_pending_location_node().(&key); |
| 825 | ctx.cache_location_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_location_node().(key.clonerust-analyzer cargo jsonschema 0.37.4 compiler/impl#[LocationCacheKey][Clone]clone().(), node.clonerust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode][Clone]clone().()); |
| 826 | |
| 827 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(alias_key) = alias.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().() { |
| 828 | ctx.remove_alias_placeholderrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]remove_alias_placeholder().(alias_key); |
| 829 | let scoped_key = ctx.alias_cache_keyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]alias_cache_key().(Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#::clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/impl#[`Arc<T, A>`][Clone]clone().(alias_key)); |
| 830 | ctx.cache_alias_noderust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]cache_alias_node().(scoped_key, node.clonerust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode][Clone]clone().()); |
| 831 | } |
| 832 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(node) |
| 833 | } |
| 834 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err) => Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err), |
| 835 | } |
| 836 | } |
| 837 | |
| 838 | fn compile_without_cacherust-analyzer cargo jsonschema 0.37.4 compiler/compile_without_cache().<'a>( |
| 839 | ctx: &Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#, |
| 840 | resource: ResourceRefrust-analyzer cargo referencing 0.37.4 resource/ResourceRef#<'a>, |
| 841 | ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#, ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'a>> { |
| 842 | match resource.contentsrust-analyzer cargo referencing 0.37.4 resource/impl#[`ResourceRef<'a>`]contents().() { |
| 843 | Valuerust-analyzer cargo serde_json 1.0.145 value/Value#::Boolrust-analyzer cargo serde_json 1.0.145 value/Value#Bool#(value) => match value { |
| 844 | true => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#::from_booleanrust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode]from_boolean().(ctx, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#)), |
| 845 | false => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#::from_booleanrust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode]from_boolean().( |
| 846 | ctx, |
| 847 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#( |
| 848 | keywordsrust-analyzer cargo jsonschema 0.37.4 keywords/::booleanrust-analyzer cargo jsonschema 0.37.4 keywords/boolean/::FalseValidatorrust-analyzer cargo jsonschema 0.37.4 keywords/boolean/FalseValidator#::compilerust-analyzer cargo jsonschema 0.37.4 keywords/boolean/impl#[FalseValidator]compile().(ctx.locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location().().clonerust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location][Clone]clone().()) |
| 849 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Should always compile"), |
| 850 | ), |
| 851 | )), |
| 852 | }, |
| 853 | Valuerust-analyzer cargo serde_json 1.0.145 value/Value#::Objectrust-analyzer cargo serde_json 1.0.145 value/Value#Object#(schema) => { |
| 854 | // A schema could contain validation keywords along with annotations and we need to |
| 855 | // collect annotations separately |
| 856 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().ctx.supports_adjacent_validationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]supports_adjacent_validation().() { |
| 857 | // Older drafts ignore all other keywords if `$ref` is present |
| 858 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(reference) = schema.getrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]get().("$ref") { |
| 859 | // Treat all keywords other than `$ref` as annotations |
| 860 | let annotations: AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#> = schema |
| 861 | .iterrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]iter().() |
| 862 | .filter_maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#filter_map().(|(k, v)| { |
| 863 | if k.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq()."$ref" { |
| 864 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 865 | } else { |
| 866 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((k.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Clone]clone().(), v.clonerust-analyzer cargo serde_json 1.0.145 value/impl#[Value][Clone]clone().())) |
| 867 | } |
| 868 | }) |
| 869 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(); |
| 870 | let annotations = if annotations.is_emptyrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`]is_empty().() { |
| 871 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 872 | } else { |
| 873 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(annotations_to_valuerust-analyzer cargo jsonschema 0.37.4 compiler/annotations_to_value().(annotations)) |
| 874 | }; |
| 875 | return if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(validator) = |
| 876 | keywordsrust-analyzer cargo jsonschema 0.37.4 keywords/::ref_rust-analyzer cargo jsonschema 0.37.4 keywords/ref_/::compile_refrust-analyzer cargo jsonschema 0.37.4 keywords/ref_/compile_ref().(ctx, schema, reference) |
| 877 | { |
| 878 | let validators = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![(BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Refrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Ref#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), validator?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().)]; |
| 879 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#::from_keywordsrust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode]from_keywords().(ctx, validators, annotations)) |
| 880 | } else { |
| 881 | // Infinite reference to the same location |
| 882 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#::from_booleanrust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode]from_boolean().(ctx, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#)) |
| 883 | }; |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | let mut validators = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]with_capacity().(schema.lenrust-analyzer cargo serde_json 1.0.145 map/impl#[`Map<String, Value>`]len().()); |
| 888 | let mut annotations = AHashMaprust-analyzer cargo ahash 0.8.12 hash_map/AHashMap#::newrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V>`]new().(); |
| 889 | for (keyword, value) in schema { |
| 890 | // Check if this keyword is overridden, then check the standard definitions |
| 891 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(factory) = ctx.get_keyword_factoryrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]get_keyword_factory().(keyword) { |
| 892 | let path = ctx.locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location().().joinrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]join().(keyword); |
| 893 | let validator = CustomKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/custom/CustomKeyword#::newrust-analyzer cargo jsonschema 0.37.4 keywords/custom/impl#[CustomKeyword]new().(factory.initrust-analyzer cargo jsonschema 0.37.4 keywords/custom/KeywordFactory#init().(schema, value, path)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().); |
| 894 | let validator: BoxedValidatorrust-analyzer cargo jsonschema 0.37.4 keywords/BoxedValidator# = Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T>`]new().(validator); |
| 895 | validators.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().((Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#::customrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]custom().(keyword), validator)); |
| 896 | } else if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((keyword, validator)) = keywordsrust-analyzer cargo jsonschema 0.37.4 keywords/::get_for_draftrust-analyzer cargo jsonschema 0.37.4 keywords/get_for_draft().(ctx, keyword) |
| 897 | .and_thenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]and_then().(|(keyword, f)| f(ctx, schema, value).maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|v| (keyword, v))) |
| 898 | { |
| 899 | validators.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().((keyword, validator.map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#::to_ownedrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'a>`]to_owned().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().)); |
| 900 | } else if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().ctx.is_known_keywordrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]is_known_keyword().(keyword) { |
| 901 | // Treat all non-validation keywords as annotations |
| 902 | annotations.insertrust-analyzer cargo ahash 0.8.12 hash_map/impl#[`AHashMap<K, V, S>`]insert().(keyword.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Clone]clone().(), value.clonerust-analyzer cargo serde_json 1.0.145 value/impl#[Value][Clone]clone().()); |
| 903 | } |
| 904 | } |
| 905 | let annotations = if annotations.is_emptyrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`]is_empty().() { |
| 906 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 907 | } else { |
| 908 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(annotations_to_valuerust-analyzer cargo jsonschema 0.37.4 compiler/annotations_to_value().(annotations)) |
| 909 | }; |
| 910 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(SchemaNoderust-analyzer cargo jsonschema 0.37.4 node/SchemaNode#::from_keywordsrust-analyzer cargo jsonschema 0.37.4 node/impl#[SchemaNode]from_keywords().(ctx, validators, annotations)) |
| 911 | } |
| 912 | _ => Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#::multiple_type_errorrust-analyzer cargo jsonschema 0.37.4 error/impl#[`ValidationError<'a>`]multiple_type_error().( |
| 913 | Locationrust-analyzer cargo jsonschema 0.37.4 paths/Location#::newrust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location]new().(), |
| 914 | ctx.locationrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]location().().clonerust-analyzer cargo jsonschema 0.37.4 paths/impl#[Location][Clone]clone().(), |
| 915 | resource.contentsrust-analyzer cargo referencing 0.37.4 resource/impl#[`ResourceRef<'a>`]contents().(), |
| 916 | JsonTypeSetrust-analyzer cargo jsonschema 0.37.4 types/JsonTypeSet#::emptyrust-analyzer cargo jsonschema 0.37.4 types/impl#[JsonTypeSet]empty().() |
| 917 | .insertrust-analyzer cargo jsonschema 0.37.4 types/impl#[JsonTypeSet]insert().(JsonTyperust-analyzer cargo jsonschema 0.37.4 types/JsonType#::Booleanrust-analyzer cargo jsonschema 0.37.4 types/JsonType#Boolean#) |
| 918 | .insertrust-analyzer cargo jsonschema 0.37.4 types/impl#[JsonTypeSet]insert().(JsonTyperust-analyzer cargo jsonschema 0.37.4 types/JsonType#::Objectrust-analyzer cargo jsonschema 0.37.4 types/JsonType#Object#), |
| 919 | )), |
| 920 | } |
| 921 | } |