pub struct CFXMLParser { /* private fields */ }Available on crate feature
CFXMLParser only.Expand description
Implementations§
Source§impl CFXMLParser
impl CFXMLParser
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
xml_data: Option<&CFData>,
data_source: Option<&CFURL>,
parse_options: CFOptionFlags,
version_of_nodes: CFIndex,
call_backs: *mut CFXMLParserCallBacks,
context: *mut CFXMLParserContext,
) -> Option<CFRetained<CFXMLParser>>
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library insteadAvailable on crate features CFData and CFURL and CFXMLNode only.
pub unsafe fn new( allocator: Option<&CFAllocator>, xml_data: Option<&CFData>, data_source: Option<&CFURL>, parse_options: CFOptionFlags, version_of_nodes: CFIndex, call_backs: *mut CFXMLParserCallBacks, context: *mut CFXMLParserContext, ) -> Option<CFRetained<CFXMLParser>>
CFData and CFURL and CFXMLNode only.§Safety
allocatormight not allowNone.xml_datamight not allowNone.data_sourcemight not allowNone.call_backsmust be a valid pointer.contextmust be a valid pointer.
Sourcepub unsafe fn with_data_from_url(
allocator: Option<&CFAllocator>,
data_source: Option<&CFURL>,
parse_options: CFOptionFlags,
version_of_nodes: CFIndex,
call_backs: *mut CFXMLParserCallBacks,
context: *mut CFXMLParserContext,
) -> Option<CFRetained<CFXMLParser>>
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library insteadAvailable on crate features CFData and CFURL and CFXMLNode only.
pub unsafe fn with_data_from_url( allocator: Option<&CFAllocator>, data_source: Option<&CFURL>, parse_options: CFOptionFlags, version_of_nodes: CFIndex, call_backs: *mut CFXMLParserCallBacks, context: *mut CFXMLParserContext, ) -> Option<CFRetained<CFXMLParser>>
CFData and CFURL and CFXMLNode only.§Safety
allocatormight not allowNone.data_sourcemight not allowNone.call_backsmust be a valid pointer.contextmust be a valid pointer.
Sourcepub unsafe fn context(&self, context: *mut CFXMLParserContext)
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub unsafe fn context(&self, context: *mut CFXMLParserContext)
§Safety
context must be a valid pointer.
Sourcepub unsafe fn call_backs(&self, call_backs: *mut CFXMLParserCallBacks)
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library insteadAvailable on crate features CFData and CFURL and CFXMLNode only.
pub unsafe fn call_backs(&self, call_backs: *mut CFXMLParserCallBacks)
CFData and CFURL and CFXMLNode only.§Safety
call_backs must be a valid pointer.
pub fn source_url(&self) -> Option<CFRetained<CFURL>>
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
Available on crate feature
CFURL only.pub fn location(&self) -> CFIndex
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub fn line_number(&self) -> CFIndex
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub fn document(&self) -> *mut c_void
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub fn status_code(&self) -> CFXMLParserStatusCode
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub fn error_description(&self) -> Option<CFRetained<CFString>>
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
Sourcepub unsafe fn abort(
&self,
error_code: CFXMLParserStatusCode,
error_description: Option<&CFString>,
)
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
pub unsafe fn abort( &self, error_code: CFXMLParserStatusCode, error_description: Option<&CFString>, )
§Safety
error_description might not allow None.
pub fn parse(&self) -> bool
👎Deprecated: CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
pub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
Attempt to downcast the type to that of type T.
This is the reference-variant. Use CFRetained::downcast if you
want to convert a retained type. See also ConcreteType for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumbers, small CFStrings etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CFXMLParser
impl AsRef<AnyObject> for CFXMLParser
Source§impl AsRef<CFType> for CFXMLParser
impl AsRef<CFType> for CFXMLParser
Source§impl AsRef<CFXMLParser> for CFXMLParser
impl AsRef<CFXMLParser> for CFXMLParser
Source§impl Borrow<AnyObject> for CFXMLParser
impl Borrow<AnyObject> for CFXMLParser
Source§impl Borrow<CFType> for CFXMLParser
impl Borrow<CFType> for CFXMLParser
Source§impl ConcreteType for CFXMLParser
impl ConcreteType for CFXMLParser
Source§impl Debug for CFXMLParser
impl Debug for CFXMLParser
Source§impl Deref for CFXMLParser
impl Deref for CFXMLParser
Source§impl Hash for CFXMLParser
impl Hash for CFXMLParser
Source§impl Message for CFXMLParser
impl Message for CFXMLParser
Source§impl PartialEq for CFXMLParser
impl PartialEq for CFXMLParser
Source§impl RefEncode for CFXMLParser
impl RefEncode for CFXMLParser
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CFXMLParser
impl Type for CFXMLParser
Source§fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation crate. Read moreimpl Eq for CFXMLParser
Auto Trait Implementations§
impl !Freeze for CFXMLParser
impl !RefUnwindSafe for CFXMLParser
impl !Send for CFXMLParser
impl !Sync for CFXMLParser
impl !Unpin for CFXMLParser
impl !UnwindSafe for CFXMLParser
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