| /third_party/openssl/crypto/property/ |
| D | property.c | 2 * Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved. 3 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. 59 STACK_OF(IMPLEMENTATION) *impls; 82 /* Count of the query cache entries for all algs */ 85 /* Flag: 1 if query cache entries for all algs need flushing */ 117 ossl_property_free(globp->list); in ossl_ctx_global_properties_free() 145 return globp != NULL ? &globp->list : NULL; in ossl_ctx_global_properties() 155 return globp != NULL && globp->no_mirrored ? 1 : 0; in ossl_global_properties_no_mirrored() 165 globp->no_mirrored = 1; in ossl_global_properties_stop_mirroring() 171 return (*method->up_ref)(method->method); in ossl_method_up_ref() [all …]
|
| /third_party/rust/crates/cxx/syntax/ |
| D | types.rs | 16 pub all: OrderedSet<&'a Type>, field 24 pub impls: OrderedMap<ImplKey<'a>, Option<&'a Impl>>, field 31 pub fn collect(cx: &mut Errors, apis: &'a [Api]) -> Self { in collect() 32 let mut all = OrderedSet::new(); in collect() localVariable 39 let mut impls = OrderedMap::new(); in collect() localVariable 44 fn visit<'a>(all: &mut OrderedSet<&'a Type>, ty: &'a Type) { in collect() 54 CollectTypes(all).visit_type(ty); in collect() 69 // All other cases of duplicate identifiers are reported as an error. in collect() 86 visit(&mut all, &field.ty); in collect() 93 all.insert(repr_type); in collect() [all …]
|
| /third_party/openssl/test/ |
| D | property_test.c | 2 * Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved. 3 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. 19 * We make our OSSL_PROVIDER for testing purposes. All we really need is 85 { "", "sky=blue", -1 }, 92 { "groan", "groan=no", -1 }, 93 { "groan", "groan!=yes", -1 }, 94 { "cold=no", "cold", -1 }, 97 { "groan", "cold", -1 }, 100 { "groan=blue", "groan=yellow", -1 }, 105 { "today=monday, tomorrow=3", "today!='monday'", -1 }, [all …]
|
| /third_party/rust/crates/serde/serde/ |
| D | Cargo.toml | 6 categories = ["encoding", "no-std", "no-std::no-alloc"] 12 license = "MIT OR Apache-2.0" 13 readme = "crates-io.md" 14 repository = "https://github.com/serde-rs/serde" 15 rust-version = "1.31" 20 [dev-dependencies] 24 doc-scrape-examples = false 31 targets = ["x86_64-unknown-linux-gnu"] 32 rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"] 51 # Provide impls for common standard library types like Vec<T> and HashMap<K, V>. [all …]
|
| /third_party/rust/crates/rustix/ |
| D | Cargo.toml | 8 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls" 10 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" 14 categories = ["os::unix-apis", "date-and-time", "filesystem", "network-programming"] 16 rust-version = "1.48" 18 [build-dependencies] 23 itoa = { version = "1.0.1", default-features = false, optional = true } 24 io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"], optional = true… 26 # Special dependencies used in rustc-dep-of-std mode. 27 core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" } 28 alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" } [all …]
|
| /third_party/rust/crates/syn/ |
| D | Cargo.toml | 5 categories = ["development-tools::procedural-macro-helpers", "parser-implementations"] 12 "/LICENSE-APACHE", 13 "/LICENSE-MIT", 19 license = "MIT OR Apache-2.0" 21 rust-version = "1.56" 24 default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"] 30 visit-mut = [] 32 clone-impls = [] 33 extra-traits = [] 34 proc-macro = ["proc-macro2/proc-macro", "quote/proc-macro"] [all …]
|
| D | README.md | 4 [<img alt="github" src="https://img.shields.io/badge/github-dtolnay/syn-8da0cb?style=for-the-badge&… 5 [<img alt="crates.io" src="https://img.shields.io/crates/v/syn.svg?style=for-the-badge&color=fc8d62… 6 [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-syn-66c2a5?style=for-the-badge&labelC… 7 …/github/actions/workflow/status/dtolnay/syn/ci.yml?branch=master&style=for-the-badge" height="20">… 15 - **Data structures** — Syn provides a complete syntax tree that can represent 21 - **Derives** — Of particular interest to derive macros is [`syn::DeriveInput`] 24 user-defined trait. 26 - **Parsing** — Parsing in Syn is built around [parser functions] with the 27 signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined by 32 - **Location information** — Every token parsed by Syn is associated with a [all …]
|
| /third_party/rust/crates/syn/codegen/src/ |
| D | eq.rs | 9 fn always_eq(field_type: &Type) -> bool { in always_eq() 14 Type::Tuple(inner) => inner.iter().all(always_eq), in always_eq() 19 fn expand_impl_body(defs: &Definitions, node: &Node) -> TokenStream { in expand_impl_body() 111 fn expand_impl(defs: &Definitions, node: &Node) -> TokenStream { in expand_impl() 117 let cfg_features = cfg::features(&node.features, "extra-traits"); in expand_impl() 132 Data::Struct(fields) if fields.values().all(always_eq) => quote!(_other), in expand_impl() 141 fn eq(&self, #other: &Self) -> bool { in expand_impl() 148 pub fn generate(defs: &Definitions) -> Result<()> { in generate() 149 let mut impls = TokenStream::new(); in generate() localVariable 151 impls.extend(expand_impl(defs, node)); in generate() [all …]
|
| D | hash.rs | 9 fn skip(field_type: &Type) -> bool { in skip() 14 Type::Tuple(inner) => inner.iter().all(skip), in skip() 19 fn expand_impl_body(defs: &Definitions, node: &Node) -> TokenStream { in expand_impl_body() 116 fn expand_impl(defs: &Definitions, node: &Node) -> TokenStream { in expand_impl() 126 let cfg_features = cfg::features(&node.features, "extra-traits"); in expand_impl() 149 pub fn generate(defs: &Definitions) -> Result<()> { in generate() 150 let mut impls = TokenStream::new(); in generate() localVariable 152 impls.extend(expand_impl(defs, node)); in generate() 163 #impls in generate()
|
| /third_party/rust/crates/rustix/.github/workflows/ |
| D | main.yml | 6 - main 13 runs-on: ubuntu-latest 15 - uses: actions/checkout@v3 18 - uses: ./.github/actions/install-rust 21 - run: cargo fmt --all -- --check 25 runs-on: ${{ matrix.os }} 30 - build: stable 31 os: ubuntu-latest 33 - build: nightly 34 os: ubuntu-latest [all …]
|
| /third_party/flatbuffers/rust/flatbuffers/src/ |
| D | primitives.rs | 2 * Copyright 2018 Google Inc. All rights reserved. 8 * http://www.apache.org/licenses/LICENSE-2.0 78 /// data relative to the *end* of an in-progress FlatBuffer. The 84 // We cannot use derive for these two impls, as the derived impls would only 91 fn clone(&self) -> Self { in clone() 99 fn eq(&self, o: &WIPOffset<T>) -> bool { in eq() 107 fn deref(&self) -> &UOffsetT { in deref() 114 pub fn new(o: UOffsetT) -> WIPOffset<T> { in new() 121 pub fn as_union_value(self) -> WIPOffset<UnionWIPOffset> { in as_union_value() 126 pub fn value(self) -> UOffsetT { in value() [all …]
|
| /third_party/rust/crates/proc-macro2/src/ |
| D | marker.rs | 5 // Zero sized marker with the correct set of autotrait impls we want all proc 16 #[allow(dead_code)] // https://github.com/rust-lang/rust/issues/119645
|
| /third_party/rust/crates/io-lifetimes/src/ |
| D | lib.rs | 8 //! | ---------- | ------------------------ | 16 //! - Less `unsafe` in user code! 18 //! - Easier to understand ownership. 20 //! - It avoids the inconsistency where `AsRawFd` and `IntoRawFd` return 24 //! - It enables a number of safe and portable convenience features, such as 31 // Work around https://github.com/rust-lang/rust/issues/103306. 32 #![cfg_attr(all(wasi_ext, target_os = "wasi"), feature(wasi_ext))] 80 // io-lifetimes defined `FromFd`/`IntoFd` traits instead of just using 82 // including std types like File and TcpStream, and popular third-party types. 86 // for third-party types. However, this means that until `OwnedFd` et al are [all …]
|
| /third_party/rust/crates/rustix/src/backend/libc/time/ |
| D | types.rs | 8 #[cfg(not(all( 15 #[cfg(all( 30 #[cfg(not(all( 38 #[cfg(all( 45 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] 49 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))] 53 #[cfg(not(all( 59 /// On 32-bit glibc platforms, `timespec` has anonymous padding fields, which 61 /// struct with explicit padding, with bidirectional `From` impls. 62 #[cfg(all( [all …]
|
| /third_party/rust/crates/regex/ |
| D | CHANGELOG.md | 1 1.7.1 (2023-01-09) 8 * [PERF #930](https://github.com/rust-lang/regex/pull/930): 13 * [BUG #945](https://github.com/rust-lang/regex/issues/945): 17 1.7.0 (2022-11-05) 23 * [FEATURE #832](https://github.com/rust-lang/regex/issues/916): 27 1.6.0 (2022-07-05) 33 * [FEATURE #832](https://github.com/rust-lang/regex/pull/832): 34 Clarify that `Captures::len` includes all groups, not just matching groups. 35 * [FEATURE #857](https://github.com/rust-lang/regex/pull/857): 37 * [FEATURE #861](https://github.com/rust-lang/regex/pull/861): [all …]
|
| /third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
| D | IntermRebuild.h | 2 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 24 // - The node is visited before children are traversed. 25 // - The returned value is used to replace the visited node. The returned value may be the same 27 // - If multiple nodes are returned, children and post visits of the returned nodes are not 30 // - If any new children are returned, the node is automatically rebuilt with the new children 32 // - Depending on the type of the node, null children may be discarded. 33 // - Ill-typed children cause rebuild errors. Ill-typed means the node to automatically rebuild 35 // - Only instances of TIntermAggregateBase can accept Multi results for any of its children. 38 // - The node is visited after any children are traversed. [all …]
|
| /third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/ |
| D | IntermRebuild.h | 2 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 24 // - The node is visited before children are traversed. 25 // - The returned value is used to replace the visited node. The returned value may be the same 27 // - If multiple nodes are returned, children and post visits of the returned nodes are not 30 // - If any new children are returned, the node is automatically rebuilt with the new children 32 // - Depending on the type of the node, null children may be discarded. 33 // - Ill-typed children cause rebuild errors. Ill-typed means the node to automatically rebuild 35 // - Only instances of TIntermAggregateBase can accept Multi results for any of its children. 38 // - The node is visited after any children are traversed. [all …]
|
| /third_party/rust/crates/syn/src/ |
| D | punctuated.rs | 5 //! - The fields of a struct are `Punctuated<Field, Token![,]>`. 6 //! - The segments of a path are `Punctuated<PathSegment, Token![::]>`. 7 //! - The bounds on a generic parameter are `Punctuated<TypeParamBound, 9 //! - The arguments to a function call are `Punctuated<Expr, Token![,]>`. 23 #[cfg(feature = "extra-traits")] 25 #[cfg(feature = "extra-traits")] 53 pub const fn new() -> Self { in new() 62 pub fn is_empty(&self) -> bool { in is_empty() 70 pub fn len(&self) -> usize { in len() 75 pub fn first(&self) -> Option<&T> { in first() [all …]
|
| D | lit.rs | 10 #[cfg(feature = "extra-traits")] 21 /// [syntax tree enum]: crate::Expr#syntax-tree-enums 24 /// A UTF-8 string literal: `"foo"`. 53 /// A UTF-8 string literal: `"foo"`. 122 pub fn new(value: &str, span: Span) -> Self { in new() 133 pub fn value(&self) -> String { in value() 141 /// All spans in the syntax tree will point to the span of this `LitStr`. 153 /// fn get_path(attr: &Attribute) -> Result<Option<Path>> { 172 pub fn parse<T: Parse>(&self) -> Result<T> { in parse() 178 /// All spans in the syntax tree will point to the span of this `LitStr`. [all …]
|
| D | lib.rs | 1 …hub]](https://github.com/dtolnay/syn) [![crates-io]](https://crates.io/crates/syn) [![do… 3 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo… 4 //! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=55555… 5 //! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&lo… 15 //! - **Data structures** — Syn provides a complete syntax tree that can 21 //! - **Derives** — Of particular interest to derive macros is 24 //! derive implementations of a user-defined trait. 26 //! - **Parsing** — Parsing in Syn is built around [parser functions] with the 27 //! signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined 32 //! - **Location information** — Every token parsed by Syn is associated with a [all …]
|
| /third_party/libdrm/android/ |
| D | gralloc_handle.h | 2 * Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com> 3 * Copyright (C) 2010-2011 LunarG Inc. 15 * in all copies or substantial portions of the Software. 39 /* dma-buf file descriptor 54 uint32_t magic; /* differentiate between allocator impls */ 76 ((sizeof(struct gralloc_handle_t) - sizeof(native_handle_t))/sizeof(int)) \ 77 - GRALLOC_HANDLE_NUM_FDS) 100 handle->magic = GRALLOC_HANDLE_MAGIC; in gralloc_handle_create() 101 handle->version = GRALLOC_HANDLE_VERSION; in gralloc_handle_create() 102 handle->width = width; in gralloc_handle_create() [all …]
|
| /third_party/rust/crates/cxx/book/src/ |
| D | shared.md | 12 sensitive but CXX will topologically sort and forward-declare your types as 17 For enums, only C-like a.k.a. unit variants are currently supported. 35 fn deck() -> Vec<PlayingCard>; 43 Shared structs compile to an aggregate-initialization compatible C++ struct. 65 all of the listed variants, we use a Rust representation for shared enums that 126 You may provide explicit discriminants for some or all of the enum variants, in 146 fitting all the discriminants (whether explicit or implicit). If you need a 197 variants and discriminant values and integer representation written in Rust all 200 Extern enums support all the same features as ordinary shared enums (explicit 201 discriminants, repr). Again, CXX will static assert that all of those things you [all …]
|
| /third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
| D | time_zone_impl.cc | 1 // Copyright 2016 Google Inc. All Rights Reserved. 7 // https://www.apache.org/licenses/LICENSE-2.0 34 // time_zone::Impls are linked into a map to support fast lookup by name. 65 TimeZoneImplByName::const_iterator itr = time_zone_map->find(name); in LoadTimeZone() 66 if (itr != time_zone_map->end()) { in LoadTimeZone() 67 *tz = time_zone(itr->second); in LoadTimeZone() 68 return itr->second != utc_impl; in LoadTimeZone() 81 impl = new_impl->zone_ ? new_impl.release() : utc_impl; in LoadTimeZone() 96 cleared->push_back(element.second); in ClearTimeZoneMapTestOnly() 98 time_zone_map->clear(); in ClearTimeZoneMapTestOnly()
|
| /third_party/rust/crates/memchr/bench/src/memmem/ |
| D | imp.rs | 2 This module defines a common API (by convention) for all of the different 3 impls that we benchmark. The intent here is to 1) make it easy to write macros 4 for generating benchmark definitions generic over impls and 2) make it easier 5 to read the benchmarks themselves and grok how exactly each of the impls are 15 it makes writing macros to define benchmarks for all variants much easier. 19 /// does approximately as well as all other implementations, and a lot better 22 pub(crate) fn available(_: &str) -> &'static [&'static str] { in available() 29 pub(crate) fn oneshot(haystack: &str, needle: &str) -> bool { in oneshot() 35 ) -> impl Fn(&str) -> bool + 'static { in prebuilt() 43 ) -> impl Iterator<Item = usize> + 'a { in oneshotiter() [all …]
|
| /third_party/skia/experimental/graphite/src/ |
| D | Device.h | 4 * Use of this source code is governed by a BSD-style license that can be 60 // No need to specialize drawDRRect, drawArc, drawRegion, drawPatch as the default impls all 71 * out explicitly so it's easy to keep tabs on how close feature-complete actually is. 121 // - drawPaint, drawVertices, drawAtlas 122 // - drawShape after it's applied the mask filter. 126 // - drawPaint, drawImageLattice, drawImageRect, drawEdgeAAImageSet, drawVertices, drawAtlas 127 // - drawShape after it's applied the path effect. 134 // Handles applying path effects, mask filters, stroke-and-fill styles, and hairlines. 142 // the draw's bounds, applying both the style and scissor to the returned bounds. Low-level 153 // Ensures clip elements are drawn that will clip previous draw calls, snaps all pending work [all …]
|