pub unsafe trait NSAttributedStringDocumentFormats: ClassType {
// 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 { ... }
}Available on crate feature
NSAttributedString only.Expand description
Category on NSAttributedString.
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>>
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>>
unsafe fn dataFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSData>, Retained<NSError>>
unsafe fn fileWrapperFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject> ) -> Result<Retained<NSFileWrapper>, Retained<NSError>>
Object Safety§
This trait is not object safe.