pub struct SKIndex { /* private fields */ }Available on crate feature
SKIndex only.Expand description
Implementations§
Source§impl SKIndex
impl SKIndex
Sourcepub unsafe fn with_url(
in_url: Option<&CFURL>,
in_index_name: Option<&CFString>,
in_index_type: SKIndexType,
in_analysis_properties: Option<&CFDictionary>,
) -> Option<CFRetained<SKIndex>>
Available on crate feature SearchKit only.
pub unsafe fn with_url( in_url: Option<&CFURL>, in_index_name: Option<&CFString>, in_index_type: SKIndexType, in_analysis_properties: Option<&CFDictionary>, ) -> Option<CFRetained<SKIndex>>
SearchKit only.§Safety
in_urlmight not allowNone.in_index_namemight not allowNone.in_analysis_propertiesgenerics must be of the correct type.in_analysis_propertiesmight not allowNone.
Sourcepub unsafe fn open_with_url(
in_url: Option<&CFURL>,
in_index_name: Option<&CFString>,
in_write_access: bool,
) -> Option<CFRetained<SKIndex>>
Available on crate feature SearchKit only.
pub unsafe fn open_with_url( in_url: Option<&CFURL>, in_index_name: Option<&CFString>, in_write_access: bool, ) -> Option<CFRetained<SKIndex>>
SearchKit only.§Safety
in_urlmight not allowNone.in_index_namemight not allowNone.
Sourcepub unsafe fn with_mutable_data(
in_data: Option<&CFMutableData>,
in_index_name: Option<&CFString>,
in_index_type: SKIndexType,
in_analysis_properties: Option<&CFDictionary>,
) -> Option<CFRetained<SKIndex>>
Available on crate feature SearchKit only.
pub unsafe fn with_mutable_data( in_data: Option<&CFMutableData>, in_index_name: Option<&CFString>, in_index_type: SKIndexType, in_analysis_properties: Option<&CFDictionary>, ) -> Option<CFRetained<SKIndex>>
SearchKit only.§Safety
in_datamight not allowNone.in_index_namemight not allowNone.in_analysis_propertiesgenerics must be of the correct type.in_analysis_propertiesmight not allowNone.
Sourcepub unsafe fn open_with_data(
in_data: Option<&CFData>,
in_index_name: Option<&CFString>,
) -> Option<CFRetained<SKIndex>>
Available on crate feature SearchKit only.
pub unsafe fn open_with_data( in_data: Option<&CFData>, in_index_name: Option<&CFString>, ) -> Option<CFRetained<SKIndex>>
SearchKit only.§Safety
in_datamight not allowNone.in_index_namemight not allowNone.
Sourcepub unsafe fn open_with_mutable_data(
in_data: Option<&CFMutableData>,
in_index_name: Option<&CFString>,
) -> Option<CFRetained<SKIndex>>
Available on crate feature SearchKit only.
pub unsafe fn open_with_mutable_data( in_data: Option<&CFMutableData>, in_index_name: Option<&CFString>, ) -> Option<CFRetained<SKIndex>>
SearchKit only.§Safety
in_datamight not allowNone.in_index_namemight not allowNone.
pub unsafe fn flush(&self) -> bool
Available on crate feature
SearchKit only.pub unsafe fn set_maximum_bytes_before_flush( &self, in_bytes_for_update: CFIndex, )
Available on crate feature
SearchKit only.pub unsafe fn maximum_bytes_before_flush(&self) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn compact(&self) -> bool
Available on crate feature
SearchKit only.pub unsafe fn index_type(&self) -> SKIndexType
Available on crate feature
SearchKit only.pub unsafe fn analysis_properties(&self) -> Option<CFRetained<CFDictionary>>
Available on crate feature
SearchKit only.pub unsafe fn document_count(&self) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn close(&self)
Available on crate feature
SearchKit only.Source§impl SKIndex
impl SKIndex
Sourcepub unsafe fn add_document_with_text(
&self,
in_document: Option<&SKDocument>,
in_document_text: Option<&CFString>,
in_can_replace: bool,
) -> bool
Available on crate features SearchKit and SKDocument only.
pub unsafe fn add_document_with_text( &self, in_document: Option<&SKDocument>, in_document_text: Option<&CFString>, in_can_replace: bool, ) -> bool
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.in_document_textmight not allowNone.
Sourcepub unsafe fn add_document(
&self,
in_document: Option<&SKDocument>,
in_mime_type_hint: Option<&CFString>,
in_can_replace: bool,
) -> bool
Available on crate features SearchKit and SKDocument only.
pub unsafe fn add_document( &self, in_document: Option<&SKDocument>, in_mime_type_hint: Option<&CFString>, in_can_replace: bool, ) -> bool
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.in_mime_type_hintmight not allowNone.
Sourcepub unsafe fn remove_document(&self, in_document: Option<&SKDocument>) -> bool
Available on crate features SearchKit and SKDocument only.
pub unsafe fn remove_document(&self, in_document: Option<&SKDocument>) -> bool
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.
Sourcepub unsafe fn document_properties(
&self,
in_document: Option<&SKDocument>,
) -> Option<CFRetained<CFDictionary>>
Available on crate features SearchKit and SKDocument only.
pub unsafe fn document_properties( &self, in_document: Option<&SKDocument>, ) -> Option<CFRetained<CFDictionary>>
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.
Sourcepub unsafe fn set_document_properties(
&self,
in_document: Option<&SKDocument>,
in_properties: Option<&CFDictionary>,
)
Available on crate features SearchKit and SKDocument only.
pub unsafe fn set_document_properties( &self, in_document: Option<&SKDocument>, in_properties: Option<&CFDictionary>, )
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.in_propertiesgenerics must be of the correct type.in_propertiesmight not allowNone.
Sourcepub unsafe fn document_state(
&self,
in_document: Option<&SKDocument>,
) -> SKDocumentIndexState
Available on crate features SearchKit and SKDocument only.
pub unsafe fn document_state( &self, in_document: Option<&SKDocument>, ) -> SKDocumentIndexState
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.
Sourcepub unsafe fn document_id(
&self,
in_document: Option<&SKDocument>,
) -> SKDocumentID
Available on crate features SearchKit and SKDocument only.
pub unsafe fn document_id( &self, in_document: Option<&SKDocument>, ) -> SKDocumentID
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.
pub unsafe fn document_for_document_id( &self, in_document_id: SKDocumentID, ) -> Option<CFRetained<SKDocument>>
Available on crate features
SearchKit and SKDocument only.Sourcepub unsafe fn rename_document(
&self,
in_document: Option<&SKDocument>,
in_new_name: Option<&CFString>,
) -> bool
Available on crate features SearchKit and SKDocument only.
pub unsafe fn rename_document( &self, in_document: Option<&SKDocument>, in_new_name: Option<&CFString>, ) -> bool
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.in_new_namemight not allowNone.
Sourcepub unsafe fn move_document(
&self,
in_document: Option<&SKDocument>,
in_new_parent: Option<&SKDocument>,
) -> bool
Available on crate features SearchKit and SKDocument only.
pub unsafe fn move_document( &self, in_document: Option<&SKDocument>, in_new_parent: Option<&SKDocument>, ) -> bool
SearchKit and SKDocument only.§Safety
in_documentshould be of the correct type.in_documentmight not allowNone.in_new_parentshould be of the correct type.in_new_parentmight not allowNone.
Source§impl SKIndex
impl SKIndex
pub unsafe fn maximum_document_id(&self) -> SKDocumentID
Available on crate feature
SearchKit only.pub unsafe fn document_term_count( &self, in_document_id: SKDocumentID, ) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn term_id_array_for_document_id( &self, in_document_id: SKDocumentID, ) -> Option<CFRetained<CFArray>>
Available on crate feature
SearchKit only.pub unsafe fn document_term_frequency( &self, in_document_id: SKDocumentID, in_term_id: CFIndex, ) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn maximum_term_id(&self) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn term_document_count(&self, in_term_id: CFIndex) -> CFIndex
Available on crate feature
SearchKit only.pub unsafe fn document_id_array_for_term_id( &self, in_term_id: CFIndex, ) -> Option<CFRetained<CFArray>>
Available on crate feature
SearchKit only.pub unsafe fn term_string_for_term_id( &self, in_term_id: CFIndex, ) -> Option<CFRetained<CFString>>
Available on crate feature
SearchKit only.Source§impl SKIndex
impl SKIndex
Sourcepub unsafe fn copy_info_for_document_ids(
&self,
in_count: CFIndex,
in_document_i_ds_array: *mut SKDocumentID,
out_names_array: *mut *const CFString,
out_parent_i_ds_array: *mut SKDocumentID,
)
Available on crate features SearchKit and SKSearch only.
pub unsafe fn copy_info_for_document_ids( &self, in_count: CFIndex, in_document_i_ds_array: *mut SKDocumentID, out_names_array: *mut *const CFString, out_parent_i_ds_array: *mut SKDocumentID, )
SearchKit and SKSearch only.§Safety
in_document_i_ds_arraymust be a valid pointer.out_names_arraymust be a valid pointer.out_parent_i_ds_arraymust be a valid pointer.
Sourcepub unsafe fn copy_document_refs_for_document_ids(
&self,
in_count: CFIndex,
in_document_i_ds_array: *mut SKDocumentID,
out_document_refs_array: *mut *const SKDocument,
)
Available on crate features SearchKit and SKSearch and SKDocument only.
pub unsafe fn copy_document_refs_for_document_ids( &self, in_count: CFIndex, in_document_i_ds_array: *mut SKDocumentID, out_document_refs_array: *mut *const SKDocument, )
SearchKit and SKSearch and SKDocument only.§Safety
in_document_i_ds_arraymust be a valid pointer.out_document_refs_arraymust be a valid pointer.
Sourcepub unsafe fn copy_document_urls_for_document_ids(
&self,
in_count: CFIndex,
in_document_i_ds_array: *mut SKDocumentID,
out_document_ur_ls_array: *mut *const CFURL,
)
Available on crate features SearchKit and SKSearch only.
pub unsafe fn copy_document_urls_for_document_ids( &self, in_count: CFIndex, in_document_i_ds_array: *mut SKDocumentID, out_document_ur_ls_array: *mut *const CFURL, )
SearchKit and SKSearch only.§Safety
in_document_i_ds_arraymust be a valid pointer.out_document_ur_ls_arraymust be a valid pointer.
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Available on crate features SearchKit and SKDocument only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
SearchKit and SKDocument only.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
Available on crate features SearchKit and SKDocument only.
pub fn retain_count(&self) -> usize
SearchKit and SKDocument only.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 ConcreteType for SKIndex
Available on crate feature SearchKit only.
impl ConcreteType for SKIndex
Available on crate feature
SearchKit only.Source§impl RefEncode for SKIndex
Available on crate feature SearchKit only.
impl RefEncode for SKIndex
Available on crate feature
SearchKit only.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 SKIndex
Available on crate feature SearchKit only.
impl Type for SKIndex
Available on crate feature
SearchKit only.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 SKIndex
Available on crate feature
SearchKit only.Auto Trait Implementations§
impl !Freeze for SKIndex
impl !RefUnwindSafe for SKIndex
impl !Send for SKIndex
impl !Sync for SKIndex
impl !Unpin for SKIndex
impl !UnwindSafe for SKIndex
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