Files
google-apis-rs/core_foundation/base/index.html
2021-04-02 00:20:57 +08:00

22 lines
16 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `base` mod in crate `core_foundation`."><meta name="keywords" content="rust, rustlang, rust-lang, base"><title>core_foundation::base - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../core_foundation/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module base</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#statics">Statics</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class="location"><a href="../index.html">core_foundation</a></p><div id="sidebar-vars" data-name="base" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">core_foundation</a>::<wbr><a class="mod" href="">base</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/core_foundation/base.rs.html#10-452" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<table><tr class="module-item"><td><a class="struct" href="struct.CFAllocator.html" title="core_foundation::base::CFAllocator struct">CFAllocator</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CFAllocatorContext.html" title="core_foundation::base::CFAllocatorContext struct">CFAllocatorContext</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CFRange.html" title="core_foundation::base::CFRange struct">CFRange</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CFType.html" title="core_foundation::base::CFType struct">CFType</a></td><td class="docblock-short"><p>Superclass of all Core Foundation objects.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ItemMutRef.html" title="core_foundation::base::ItemMutRef struct">ItemMutRef</a></td><td class="docblock-short"><p>A reference to a mutable element inside a container</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ItemRef.html" title="core_foundation::base::ItemRef struct">ItemRef</a></td><td class="docblock-short"><p>A reference to an element inside a container</p>
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
<table><tr class="module-item"><td><a class="enum" href="enum.CFComparisonResult.html" title="core_foundation::base::CFComparisonResult enum">CFComparisonResult</a></td><td class="docblock-short"></td></tr></table><h2 id="statics" class="section-header"><a href="#statics">Statics</a></h2>
<table><tr class="module-item"><td><a class="static" href="static.kCFAllocatorDefault.html" title="core_foundation::base::kCFAllocatorDefault static">kCFAllocatorDefault</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFAllocatorMalloc.html" title="core_foundation::base::kCFAllocatorMalloc static">kCFAllocatorMalloc</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFAllocatorMallocZone.html" title="core_foundation::base::kCFAllocatorMallocZone static">kCFAllocatorMallocZone</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFAllocatorNull.html" title="core_foundation::base::kCFAllocatorNull static">kCFAllocatorNull</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFAllocatorSystemDefault.html" title="core_foundation::base::kCFAllocatorSystemDefault static">kCFAllocatorSystemDefault</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFAllocatorUseContext.html" title="core_foundation::base::kCFAllocatorUseContext static">kCFAllocatorUseContext</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="static" href="static.kCFNotFound.html" title="core_foundation::base::kCFNotFound static">kCFNotFound</a></td><td class="docblock-short"><p>Constant used by some functions to indicate failed searches.</p>
</td></tr><tr class="module-item"><td><a class="static" href="static.kCFNull.html" title="core_foundation::base::kCFNull static">kCFNull</a></td><td class="docblock-short"></td></tr></table><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
<table><tr class="module-item"><td><a class="trait" href="trait.CFIndexConvertible.html" title="core_foundation::base::CFIndexConvertible trait">CFIndexConvertible</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="trait" href="trait.FromMutVoid.html" title="core_foundation::base::FromMutVoid trait">FromMutVoid</a></td><td class="docblock-short"><p>A trait describing how to convert from the stored *mut c_void to the desired T</p>
</td></tr><tr class="module-item"><td><a class="trait" href="trait.FromVoid.html" title="core_foundation::base::FromVoid trait">FromVoid</a></td><td class="docblock-short"><p>A trait describing how to convert from the stored *const c_void to the desired T</p>
</td></tr><tr class="module-item"><td><a class="trait" href="trait.TCFType.html" title="core_foundation::base::TCFType trait">TCFType</a></td><td class="docblock-short"><p>All Core Foundation types implement this trait. The associated type <code>Ref</code> specifies the
associated Core Foundation type: e.g. for <code>CFType</code> this is <code>CFTypeRef</code>; for <code>CFArray</code> this is
<code>CFArrayRef</code>.</p>
</td></tr><tr class="module-item"><td><a class="trait" href="trait.TCFTypeRef.html" title="core_foundation::base::TCFTypeRef trait">TCFTypeRef</a></td><td class="docblock-short"><p>Trait for all types which are Core Foundation reference types.</p>
</td></tr><tr class="module-item"><td><a class="trait" href="trait.ToVoid.html" title="core_foundation::base::ToVoid trait">ToVoid</a></td><td class="docblock-short"><p>A trait describing how to convert from the stored *const c_void to the desired T</p>
</td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorAllocate.html" title="core_foundation::base::CFAllocatorAllocate fn">CFAllocatorAllocate</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorCreate.html" title="core_foundation::base::CFAllocatorCreate fn">CFAllocatorCreate</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorDeallocate.html" title="core_foundation::base::CFAllocatorDeallocate fn">CFAllocatorDeallocate</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorGetContext.html" title="core_foundation::base::CFAllocatorGetContext fn">CFAllocatorGetContext</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorGetDefault.html" title="core_foundation::base::CFAllocatorGetDefault fn">CFAllocatorGetDefault</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorGetPreferredSizeForSize.html" title="core_foundation::base::CFAllocatorGetPreferredSizeForSize fn">CFAllocatorGetPreferredSizeForSize</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorGetTypeID.html" title="core_foundation::base::CFAllocatorGetTypeID fn">CFAllocatorGetTypeID</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorReallocate.html" title="core_foundation::base::CFAllocatorReallocate fn">CFAllocatorReallocate</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFAllocatorSetDefault.html" title="core_foundation::base::CFAllocatorSetDefault fn">CFAllocatorSetDefault</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFCopyDescription.html" title="core_foundation::base::CFCopyDescription fn">CFCopyDescription</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFEqual.html" title="core_foundation::base::CFEqual fn">CFEqual</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFGetRetainCount.html" title="core_foundation::base::CFGetRetainCount fn">CFGetRetainCount</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFGetTypeID.html" title="core_foundation::base::CFGetTypeID fn">CFGetTypeID</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFHash.html" title="core_foundation::base::CFHash fn">CFHash</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFRelease.html" title="core_foundation::base::CFRelease fn">CFRelease</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFRetain.html" title="core_foundation::base::CFRetain fn">CFRetain</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.CFShow.html" title="core_foundation::base::CFShow fn">CFShow</a><a title="unsafe function" href="#"><sup></sup></a></td><td class="docblock-short"></td></tr></table><h2 id="types" class="section-header"><a href="#types">Type Definitions</a></h2>
<table><tr class="module-item"><td><a class="type" href="type.Boolean.html" title="core_foundation::base::Boolean type">Boolean</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorAllocateCallBack.html" title="core_foundation::base::CFAllocatorAllocateCallBack type">CFAllocatorAllocateCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorCopyDescriptionCallBack.html" title="core_foundation::base::CFAllocatorCopyDescriptionCallBack type">CFAllocatorCopyDescriptionCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorDeallocateCallBack.html" title="core_foundation::base::CFAllocatorDeallocateCallBack type">CFAllocatorDeallocateCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorPreferredSizeCallBack.html" title="core_foundation::base::CFAllocatorPreferredSizeCallBack type">CFAllocatorPreferredSizeCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorReallocateCallBack.html" title="core_foundation::base::CFAllocatorReallocateCallBack type">CFAllocatorReallocateCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorRef.html" title="core_foundation::base::CFAllocatorRef type">CFAllocatorRef</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorReleaseCallBack.html" title="core_foundation::base::CFAllocatorReleaseCallBack type">CFAllocatorReleaseCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFAllocatorRetainCallBack.html" title="core_foundation::base::CFAllocatorRetainCallBack type">CFAllocatorRetainCallBack</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFHashCode.html" title="core_foundation::base::CFHashCode type">CFHashCode</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFIndex.html" title="core_foundation::base::CFIndex type">CFIndex</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFNullRef.html" title="core_foundation::base::CFNullRef type">CFNullRef</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFOptionFlags.html" title="core_foundation::base::CFOptionFlags type">CFOptionFlags</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFTypeID.html" title="core_foundation::base::CFTypeID type">CFTypeID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.CFTypeRef.html" title="core_foundation::base::CFTypeRef type">CFTypeRef</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.OSStatus.html" title="core_foundation::base::OSStatus type">OSStatus</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.SInt32.html" title="core_foundation::base::SInt32 type">SInt32</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="type" href="type.mach_port_t.html" title="core_foundation::base::mach_port_t type">mach_port_t</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="core_foundation"></div>
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>