pub struct CFPropertyList;Expand description
Namespace for property-list parse / serialize helpers.
Implementations§
Source§impl CFPropertyList
impl CFPropertyList
Sourcepub fn create_deep_copy(
property_list: &dyn AsCFType,
options: CFPropertyListMutabilityOptions,
) -> Result<CFType, CFError>
pub fn create_deep_copy( property_list: &dyn AsCFType, options: CFPropertyListMutabilityOptions, ) -> Result<CFType, CFError>
Deep-copy a property list, optionally changing its mutability semantics.
Sourcepub fn create_with_data(
data: &CFData,
options: CFPropertyListMutabilityOptions,
) -> Result<(CFType, CFPropertyListFormat), CFPropertyListError>
pub fn create_with_data( data: &CFData, options: CFPropertyListMutabilityOptions, ) -> Result<(CFType, CFPropertyListFormat), CFPropertyListError>
Decode a property list from an in-memory data blob.
Sourcepub fn create_with_stream(
stream: &CFReadStream,
stream_length: usize,
options: CFPropertyListMutabilityOptions,
) -> Result<(CFType, CFPropertyListFormat), CFPropertyListError>
pub fn create_with_stream( stream: &CFReadStream, stream_length: usize, options: CFPropertyListMutabilityOptions, ) -> Result<(CFType, CFPropertyListFormat), CFPropertyListError>
Decode a property list from an already-open Core Foundation read stream.
Sourcepub fn create_data(
property_list: &dyn AsCFType,
format: CFPropertyListFormat,
options: u64,
) -> Result<CFData, CFPropertyListError>
pub fn create_data( property_list: &dyn AsCFType, format: CFPropertyListFormat, options: u64, ) -> Result<CFData, CFPropertyListError>
Serialize a property list into a CFData blob.
Sourcepub fn write(
property_list: &dyn AsCFType,
stream: &CFWriteStream,
format: CFPropertyListFormat,
options: u64,
) -> Result<usize, CFPropertyListError>
pub fn write( property_list: &dyn AsCFType, stream: &CFWriteStream, format: CFPropertyListFormat, options: u64, ) -> Result<usize, CFPropertyListError>
Write a serialized property list to an already-open Core Foundation write stream.
Sourcepub fn is_valid(
property_list: &dyn AsCFType,
format: CFPropertyListFormat,
) -> bool
pub fn is_valid( property_list: &dyn AsCFType, format: CFPropertyListFormat, ) -> bool
Validate whether a Core Foundation object can be serialized as a property list.
Auto Trait Implementations§
impl Freeze for CFPropertyList
impl RefUnwindSafe for CFPropertyList
impl Send for CFPropertyList
impl Sync for CFPropertyList
impl Unpin for CFPropertyList
impl UnsafeUnpin for CFPropertyList
impl UnwindSafe for CFPropertyList
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