Hide foreign-types internals from docs

This commit is contained in:
Kornel
2017-09-15 00:08:19 +01:00
parent 81a2c1dc9d
commit 8c0664a542
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ use core_foundation::base::{CFRelease, CFRetain, CFTypeID};
use foreign_types::ForeignType;
foreign_type! {
#[doc(hidden)]
type CType = ::sys::CGColorSpace;
fn drop = |p| CFRelease(p as *mut _);
fn clone = |p| CFRetain(p as *const _) as *mut _;
+1
View File
@@ -92,6 +92,7 @@ pub enum CGEventTapLocation {
}
foreign_type! {
#[doc(hidden)]
type CType = ::sys::CGEvent;
fn drop = |p| CFRelease(p as *mut _);
fn clone = |p| CFRetain(p as *const _) as *mut _;
+1
View File
@@ -18,6 +18,7 @@ use libc;
pub type CGGlyph = libc::c_ushort;
foreign_type! {
#[doc(hidden)]
type CType = ::sys::CGFont;
fn drop = |p| CFRelease(p as *mut _);
fn clone = |p| CFRetain(p as *const _) as *mut _;
+1
View File
@@ -27,6 +27,7 @@ pub enum CGImageByteOrderInfo {
}
foreign_type! {
#[doc(hidden)]
type CType = ::sys::CGImage;
fn drop = CGImageRelease;
fn clone = |p| CFRetain(p as *const _) as *mut _;