| 1 | use ffirust-analyzer cargo yaml 0.3.0 ffi/; |
| 2 | use ffirust-analyzer cargo yaml 0.3.0 ffi/::{YamlEncodingrust-analyzer cargo yaml 0.3.0 ffi/YamlEncoding#, YamlSequenceStylerust-analyzer cargo yaml 0.3.0 ffi/YamlSequenceStyle#, YamlScalarStylerust-analyzer cargo yaml 0.3.0 ffi/YamlScalarStyle#}; |
| 3 | use ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_event_type_trust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#::*; |
| 4 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::{CStringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/CString#, NulErrorrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/NulError#}; |
| 5 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/; |
| 6 | use 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/; |
| 7 | |
| 8 | use codecsrust-analyzer cargo yaml 0.3.0 codecs/; |
| 9 | use ::errorrust-analyzer cargo yaml 0.3.0 error/::YamlMarkrust-analyzer cargo yaml 0.3.0 error/YamlMark#; |
| 10 | |
| 11 | #[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:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, 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:)] |
| 12 | pub struct YamlVersionDirectiverust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective# { |
| 13 | pub majorrust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective#major.: isize, |
| 14 | pub minorrust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective#minor.: isize, |
| 15 | } |
| 16 | |
| 17 | #[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:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 18 | pub struct YamlTagDirectiverust-analyzer cargo yaml 0.3.0 event/YamlTagDirective# { |
| 19 | pub handlerust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#handle.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 20 | pub prefixrust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#prefix.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 21 | } |
| 22 | |
| 23 | impl YamlTagDirectiverust-analyzer cargo yaml 0.3.0 event/YamlTagDirective# { |
| 24 | pub fn to_tag_directive_trust-analyzer cargo yaml 0.3.0 event/impl#[YamlTagDirective]to_tag_directive_t().(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_tag_directive_trust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t#, NulErrorrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/NulError#> { |
| 25 | let handle = tryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/`r#try`!!(CStringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/CString#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/impl#[CString]new().(self.handlerust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#handle..as_bytesrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_bytes().())); |
| 26 | let prefix = tryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/`r#try`!!(CStringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/CString#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc ffi/c_str/impl#[CString]new().(self.prefixrust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#prefix..as_bytesrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_bytes().())); |
| 27 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_tag_directive_trust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t# { |
| 28 | handlerust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t#handle.: handle.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_str/impl#[CStr]as_ptr().(), |
| 29 | prefixrust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t#prefix.: prefix.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_str/impl#[CStr]as_ptr().() |
| 30 | }) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | #[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:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 35 | pub struct YamlSequenceParamrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam# { |
| 36 | pub anchorrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#anchor.: 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#>, |
| 37 | pub tagrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#tag.: 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#>, |
| 38 | pub implicitrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#implicit.: bool, |
| 39 | pub stylerust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#style.: YamlSequenceStylerust-analyzer cargo yaml 0.3.0 ffi/YamlSequenceStyle# |
| 40 | } |
| 41 | |
| 42 | #[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:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 43 | pub struct YamlScalarParamrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam# { |
| 44 | pub anchorrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#anchor.: 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#>, |
| 45 | pub tagrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#tag.: 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#>, |
| 46 | pub valuerust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 47 | pub plain_implicitrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#plain_implicit.: bool, |
| 48 | pub quoted_implicitrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#quoted_implicit.: bool, |
| 49 | pub stylerust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#style.: YamlScalarStylerust-analyzer cargo yaml 0.3.0 ffi/YamlScalarStyle# |
| 50 | } |
| 51 | |
| 52 | #[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:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 53 | pub enum YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec# { |
| 54 | YamlNoEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlNoEvent#, |
| 55 | YamlStreamStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlStreamStartEvent#(YamlEncodingrust-analyzer cargo yaml 0.3.0 ffi/YamlEncoding#), |
| 56 | YamlStreamEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlStreamEndEvent#, |
| 57 | YamlDocumentStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlDocumentStartEvent#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<YamlVersionDirectiverust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective#>, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<YamlTagDirectiverust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#>, bool), |
| 58 | YamlDocumentEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlDocumentEndEvent#(bool), |
| 59 | YamlAliasEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlAliasEvent#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 60 | YamlScalarEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlScalarEvent#(YamlScalarParamrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#), |
| 61 | YamlSequenceStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlSequenceStartEvent#(YamlSequenceParamrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#), |
| 62 | YamlSequenceEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlSequenceEndEvent#, |
| 63 | YamlMappingStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlMappingStartEvent#(YamlSequenceParamrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#), |
| 64 | YamlMappingEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlMappingEndEvent#, |
| 65 | } |
| 66 | |
| 67 | #[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:)] |
| 68 | pub struct YamlEventrust-analyzer cargo yaml 0.3.0 event/YamlEvent# { |
| 69 | pub specrust-analyzer cargo yaml 0.3.0 event/YamlEvent#spec.: YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#, |
| 70 | pub startrust-analyzer cargo yaml 0.3.0 event/YamlEvent#start.: YamlMarkrust-analyzer cargo yaml 0.3.0 error/YamlMark#, |
| 71 | pub endrust-analyzer cargo yaml 0.3.0 event/YamlEvent#end.: YamlMarkrust-analyzer cargo yaml 0.3.0 error/YamlMark# |
| 72 | } |
| 73 | |
| 74 | impl YamlEventrust-analyzer cargo yaml 0.3.0 event/YamlEvent# { |
| 75 | pub unsafe fn loadrust-analyzer cargo yaml 0.3.0 event/impl#[YamlEvent]load().(event: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#) -> YamlEventrust-analyzer cargo yaml 0.3.0 event/YamlEvent# { |
| 76 | YamlEventrust-analyzer cargo yaml 0.3.0 event/YamlEvent# { |
| 77 | specrust-analyzer cargo yaml 0.3.0 event/YamlEvent#spec.: YamlEventrust-analyzer cargo yaml 0.3.0 event/YamlEvent#::load_specrust-analyzer cargo yaml 0.3.0 event/impl#[YamlEvent]load_spec().(event), |
| 78 | startrust-analyzer cargo yaml 0.3.0 event/YamlEvent#start.: YamlMarkrust-analyzer cargo yaml 0.3.0 error/YamlMark#::convrust-analyzer cargo yaml 0.3.0 error/impl#[YamlMark]conv().(&event.start_markrust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#start_mark.), |
| 79 | endrust-analyzer cargo yaml 0.3.0 event/YamlEvent#end.: YamlMarkrust-analyzer cargo yaml 0.3.0 error/YamlMark#::convrust-analyzer cargo yaml 0.3.0 error/impl#[YamlMark]conv().(&event.end_markrust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#end_mark.) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | unsafe fn load_specrust-analyzer cargo yaml 0.3.0 event/impl#[YamlEvent]load_spec().(event: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#) -> YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec# { |
| 84 | match event.event_typerust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#event_type. { |
| 85 | YAML_NO_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_NO_EVENT# => YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlNoEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlNoEvent#, |
| 86 | YAML_STREAM_START_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_STREAM_START_EVENT# => { |
| 87 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_stream_start_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_stream_start_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 88 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlStreamStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlStreamStartEvent#(evt_data.encodingrust-analyzer cargo yaml 0.3.0 ffi/yaml_stream_start_event_t#encoding.) |
| 89 | }, |
| 90 | YAML_STREAM_END_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_STREAM_END_EVENT# => YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlStreamEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlStreamEndEvent#, |
| 91 | YAML_DOCUMENT_START_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_DOCUMENT_START_EVENT# => { |
| 92 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_document_start_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 93 | let vsn_dir = if evt_data.version_directiverust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t#version_directive. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/const_ptr/impl#[`*const T`][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/const_ptr/impl#[`*const T`][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/const_ptr/impl#[`*const T`][`PartialEq<Self>`]eq().ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::nullrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null().() { |
| 94 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 95 | } else { |
| 96 | let c_vsn_dir: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_version_directive_trust-analyzer cargo yaml 0.3.0 ffi/yaml_version_directive_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(evt_data.version_directiverust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t#version_directive.); |
| 97 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(YamlVersionDirectiverust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective# { majorrust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective#major.: c_vsn_dir.majorrust-analyzer cargo yaml 0.3.0 ffi/yaml_version_directive_t#major. as isize, minorrust-analyzer cargo yaml 0.3.0 event/YamlVersionDirective#minor.: c_vsn_dir.minorrust-analyzer cargo yaml 0.3.0 ffi/yaml_version_directive_t#minor. as isize }) |
| 98 | }; |
| 99 | let mut tag_dirs = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().(); |
| 100 | let mut tag_ptr = evt_data.tag_directivesrust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t#tag_directives..startrust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_list_t#start.; |
| 101 | while tag_ptr rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::nullrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null().() && tag_ptr rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().evt_data.tag_directivesrust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t#tag_directives..endrust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_list_t#end. { |
| 102 | let tag_ref: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_tag_directive_trust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(tag_ptr); |
| 103 | let handle = codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(tag_ref.handlerust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t#handle. as *const ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_char_trust-analyzer cargo yaml 0.3.0 ffi/yaml_char_t#).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 104 | let prefix = codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(tag_ref.prefixrust-analyzer cargo yaml 0.3.0 ffi/yaml_tag_directive_t#prefix. as *const ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_char_trust-analyzer cargo yaml 0.3.0 ffi/yaml_char_t#).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 105 | tag_dirs.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().(YamlTagDirectiverust-analyzer cargo yaml 0.3.0 event/YamlTagDirective# { handlerust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#handle.: handle, prefixrust-analyzer cargo yaml 0.3.0 event/YamlTagDirective#prefix.: prefix }); |
| 106 | tag_ptr = tag_ptr.offsetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/const_ptr/impl#[`*const T`]offset().(1); |
| 107 | } |
| 108 | let implicit = evt_data.implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_document_start_event_t#implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0; |
| 109 | |
| 110 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlDocumentStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlDocumentStartEvent#(vsn_dir, tag_dirs, implicit) |
| 111 | }, |
| 112 | YAML_DOCUMENT_END_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_DOCUMENT_END_EVENT# => { |
| 113 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_document_end_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_document_end_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 114 | let implicit = evt_data.implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_document_end_event_t#implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0; |
| 115 | |
| 116 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlDocumentEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlDocumentEndEvent#(implicit) |
| 117 | }, |
| 118 | YAML_ALIAS_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_ALIAS_EVENT# => { |
| 119 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_alias_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_alias_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 120 | let anchor = codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.anchorrust-analyzer cargo yaml 0.3.0 ffi/yaml_alias_event_t#anchor.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 121 | |
| 122 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlAliasEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlAliasEvent#(anchor) |
| 123 | }, |
| 124 | YAML_SCALAR_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_SCALAR_EVENT# => { |
| 125 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_scalar_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 126 | let value = codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_bufrust-analyzer cargo yaml 0.3.0 codecs/decode_buf().(evt_data.valuerust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#value., evt_data.lengthrust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#length.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 127 | |
| 128 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlScalarEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlScalarEvent#(YamlScalarParamrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam# { |
| 129 | anchorrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#anchor.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.anchorrust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#anchor.), |
| 130 | tagrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#tag.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.tagrust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#tag.), |
| 131 | valuerust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#value.: value, |
| 132 | plain_implicitrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#plain_implicit.: evt_data.plain_implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#plain_implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0, |
| 133 | quoted_implicitrust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#quoted_implicit.: evt_data.quoted_implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#quoted_implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0, |
| 134 | stylerust-analyzer cargo yaml 0.3.0 event/YamlScalarParam#style.: evt_data.stylerust-analyzer cargo yaml 0.3.0 ffi/yaml_scalar_event_t#style. |
| 135 | }) |
| 136 | }, |
| 137 | YAML_SEQUENCE_START_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_SEQUENCE_START_EVENT# => { |
| 138 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_sequence_start_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_sequence_start_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 139 | |
| 140 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlSequenceStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlSequenceStartEvent#(YamlSequenceParamrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam# { |
| 141 | anchorrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#anchor.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.anchorrust-analyzer cargo yaml 0.3.0 ffi/yaml_sequence_start_event_t#anchor.), |
| 142 | tagrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#tag.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.tagrust-analyzer cargo yaml 0.3.0 ffi/yaml_sequence_start_event_t#tag.), |
| 143 | implicitrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#implicit.: evt_data.implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_sequence_start_event_t#implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0, |
| 144 | stylerust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#style.: evt_data.stylerust-analyzer cargo yaml 0.3.0 ffi/yaml_sequence_start_event_t#style. |
| 145 | }) |
| 146 | }, |
| 147 | YAML_SEQUENCE_END_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_SEQUENCE_END_EVENT# => YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlSequenceEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlSequenceEndEvent#, |
| 148 | YAML_MAPPING_START_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_MAPPING_START_EVENT# => { |
| 149 | let evt_data: &ffirust-analyzer cargo yaml 0.3.0 ffi/::yaml_mapping_start_event_trust-analyzer cargo yaml 0.3.0 ffi/yaml_mapping_start_event_t# = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().(&event.datarust-analyzer cargo yaml 0.3.0 ffi/yaml_event_t#data.); |
| 150 | |
| 151 | YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlMappingStartEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlMappingStartEvent#(YamlSequenceParamrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam# { |
| 152 | anchorrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#anchor.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.anchorrust-analyzer cargo yaml 0.3.0 ffi/yaml_mapping_start_event_t#anchor.), |
| 153 | tagrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#tag.: codecsrust-analyzer cargo yaml 0.3.0 codecs/::decode_c_strrust-analyzer cargo yaml 0.3.0 codecs/decode_c_str().(evt_data.tagrust-analyzer cargo yaml 0.3.0 ffi/yaml_mapping_start_event_t#tag.), |
| 154 | implicitrust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#implicit.: evt_data.implicitrust-analyzer cargo yaml 0.3.0 ffi/yaml_mapping_start_event_t#implicit. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0, |
| 155 | stylerust-analyzer cargo yaml 0.3.0 event/YamlSequenceParam#style.: evt_data.stylerust-analyzer cargo yaml 0.3.0 ffi/yaml_mapping_start_event_t#style. |
| 156 | }) |
| 157 | }, |
| 158 | YAML_MAPPING_END_EVENTrust-analyzer cargo yaml 0.3.0 type_size/yaml_event_type_t#YAML_MAPPING_END_EVENT# => YamlEventSpecrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#::YamlMappingEndEventrust-analyzer cargo yaml 0.3.0 event/YamlEventSpec#YamlMappingEndEvent# |
| 159 | } |
| 160 | } |
| 161 | } |