pub struct CGPDFDictionary { /* private fields */ }Available on crate feature
CGPDFDictionary only.Expand description
Implementations§
Source§impl CGPDFDictionary
impl CGPDFDictionary
Sourcepub unsafe fn count(dict: CGPDFDictionaryRef) -> usize
pub unsafe fn count(dict: CGPDFDictionaryRef) -> usize
§Safety
dict must be a valid pointer or null.
Sourcepub unsafe fn object(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFObjectRef,
) -> bool
Available on crate feature CGPDFObject only.
pub unsafe fn object( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFObjectRef, ) -> bool
CGPDFObject only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn boolean(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFBoolean,
) -> bool
Available on crate feature CGPDFObject only.
pub unsafe fn boolean( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFBoolean, ) -> bool
CGPDFObject only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn integer(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFInteger,
) -> bool
Available on crate feature CGPDFObject only.
pub unsafe fn integer( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFInteger, ) -> bool
CGPDFObject only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn number(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFReal,
) -> bool
Available on crate feature CGPDFObject only.
pub unsafe fn number( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFReal, ) -> bool
CGPDFObject only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn name(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut *const c_char,
) -> bool
pub unsafe fn name( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut *const c_char, ) -> bool
§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn string(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFStringRef,
) -> bool
Available on crate feature CGPDFString only.
pub unsafe fn string( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFStringRef, ) -> bool
CGPDFString only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn array(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFArrayRef,
) -> bool
Available on crate feature CGPDFArray only.
pub unsafe fn array( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFArrayRef, ) -> bool
CGPDFArray only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn dictionary(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFDictionaryRef,
) -> bool
pub unsafe fn dictionary( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFDictionaryRef, ) -> bool
§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Sourcepub unsafe fn stream(
dict: CGPDFDictionaryRef,
key: NonNull<c_char>,
value: *mut CGPDFStreamRef,
) -> bool
Available on crate feature CGPDFStream only.
pub unsafe fn stream( dict: CGPDFDictionaryRef, key: NonNull<c_char>, value: *mut CGPDFStreamRef, ) -> bool
CGPDFStream only.§Safety
dictmust be a valid pointer or null.keymust be a valid pointer.valuemust be a valid pointer or null.
Source§impl CGPDFDictionary
impl CGPDFDictionary
Sourcepub unsafe fn apply_function(
dict: CGPDFDictionaryRef,
function: CGPDFDictionaryApplierFunction,
info: *mut c_void,
)
Available on crate feature CGPDFObject only.
pub unsafe fn apply_function( dict: CGPDFDictionaryRef, function: CGPDFDictionaryApplierFunction, info: *mut c_void, )
CGPDFObject only.§Safety
dictmust be a valid pointer or null.functionmust be implemented correctly.infomust be a valid pointer or null.
Source§impl CGPDFDictionary
impl CGPDFDictionary
Sourcepub unsafe fn apply_block(
dict: CGPDFDictionaryRef,
block: CGPDFDictionaryApplierBlock,
info: *mut c_void,
)
Available on crate features CGPDFObject and block2 only.
pub unsafe fn apply_block( dict: CGPDFDictionaryRef, block: CGPDFDictionaryApplierBlock, info: *mut c_void, )
CGPDFObject and block2 only.§Safety
dictmust be a valid pointer or null.blockmust be a valid pointer or null.infomust be a valid pointer or null.
Trait Implementations§
Source§impl Debug for CGPDFDictionary
impl Debug for CGPDFDictionary
Source§impl RefEncode for CGPDFDictionary
Available on crate feature objc2 only.
impl RefEncode for CGPDFDictionary
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Auto Trait Implementations§
impl !Freeze for CGPDFDictionary
impl !RefUnwindSafe for CGPDFDictionary
impl !Send for CGPDFDictionary
impl !Sync for CGPDFDictionary
impl !Unpin for CGPDFDictionary
impl !UnwindSafe for CGPDFDictionary
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