pub struct CrossLanguageApiCorrespondence {
pub id: &'static str,
pub operation: OperationKind,
pub rust_api_names: &'static [&'static str],
pub cpp_api_names: &'static [&'static str],
}Expand description
One explicit correspondence between Rust and C++ standard-library APIs.
The strings are supplemental API evidence emitted by compiler helpers, not source spellings and never stable call identifiers. A correspondence is intentionally absent for C and for every API that is not listed here.
Fields§
§id: &'static strStable identifier shown when a cross-language rule uses this entry.
operation: OperationKindThe closed SOG operation the paired APIs establish.
rust_api_names: &'static [&'static str]Compiler-confirmed Rust API names covered by this entry.
cpp_api_names: &'static [&'static str]Compiler-confirmed C++ API names covered by this entry.
Trait Implementations§
Source§impl Clone for CrossLanguageApiCorrespondence
impl Clone for CrossLanguageApiCorrespondence
Source§fn clone(&self) -> CrossLanguageApiCorrespondence
fn clone(&self) -> CrossLanguageApiCorrespondence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CrossLanguageApiCorrespondence
impl Eq for CrossLanguageApiCorrespondence
impl StructuralPartialEq for CrossLanguageApiCorrespondence
Auto Trait Implementations§
impl Freeze for CrossLanguageApiCorrespondence
impl RefUnwindSafe for CrossLanguageApiCorrespondence
impl Send for CrossLanguageApiCorrespondence
impl Sync for CrossLanguageApiCorrespondence
impl Unpin for CrossLanguageApiCorrespondence
impl UnsafeUnpin for CrossLanguageApiCorrespondence
impl UnwindSafe for CrossLanguageApiCorrespondence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.