pub unsafe trait NSAttributedStringDocumentFormats: ClassType {
Show 15 methods // Provided methods unsafe fn initWithURL_options_documentAttributes_error( this: Allocated<Self>, url: &NSURL, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Result<Retained<Self>, Retained<NSError>> where Self: Sized + Message { ... } unsafe fn initWithData_options_documentAttributes_error( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Result<Retained<Self>, Retained<NSError>> where Self: Sized + Message { ... } unsafe fn dataFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSData>, Retained<NSError>> where Self: Sized + Message { ... } unsafe fn fileWrapperFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSFileWrapper>, Retained<NSError>> where Self: Sized + Message { ... } unsafe fn initWithRTF_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithRTFD_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithHTML_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithHTML_baseURL_documentAttributes( this: Allocated<Self>, data: &NSData, base: &NSURL, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithDocFormat_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithHTML_options_documentAttributes( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn initWithRTFDFileWrapper_documentAttributes( this: Allocated<Self>, wrapper: &NSFileWrapper, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>> where Self: Sized + Message { ... } unsafe fn RTFFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>> where Self: Sized + Message { ... } unsafe fn RTFDFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>> where Self: Sized + Message { ... } unsafe fn RTFDFileWrapperFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSFileWrapper>> where Self: Sized + Message { ... } unsafe fn docFormatFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>> where Self: Sized + Message { ... }
}
Available on crate feature NSAttributedString only.
Expand description

Category on NSAttributedString.

Provided Methods§

source

unsafe fn initWithURL_options_documentAttributes_error( this: Allocated<Self>, url: &NSURL, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Result<Retained<Self>, Retained<NSError>>
where Self: Sized + Message,

source

unsafe fn initWithData_options_documentAttributes_error( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Result<Retained<Self>, Retained<NSError>>
where Self: Sized + Message,

source

unsafe fn dataFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSData>, Retained<NSError>>
where Self: Sized + Message,

source

unsafe fn fileWrapperFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSFileWrapper>, Retained<NSError>>
where Self: Sized + Message,

source

unsafe fn initWithRTF_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithRTFD_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithHTML_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithHTML_baseURL_documentAttributes( this: Allocated<Self>, data: &NSData, base: &NSURL, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithDocFormat_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithHTML_options_documentAttributes( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn initWithRTFDFileWrapper_documentAttributes( this: Allocated<Self>, wrapper: &NSFileWrapper, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>> ) -> Option<Retained<Self>>
where Self: Sized + Message,

source

unsafe fn RTFFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>>
where Self: Sized + Message,

source

unsafe fn RTFDFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>>
where Self: Sized + Message,

source

unsafe fn RTFDFileWrapperFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSFileWrapper>>
where Self: Sized + Message,

source

unsafe fn docFormatFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Option<Retained<NSData>>
where Self: Sized + Message,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NSAttributedStringDocumentFormats for NSAttributedString

Implementors§