pub unsafe trait NSAttributedStringWebKitAdditions: ClassType {
// Provided methods
unsafe fn loadFromHTMLWithRequest_options_completionHandler(
request: &NSURLRequest,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler
)
where Self: Sized + ClassType { ... }
unsafe fn loadFromHTMLWithFileURL_options_completionHandler(
file_url: &NSURL,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler
)
where Self: Sized + ClassType { ... }
unsafe fn loadFromHTMLWithString_options_completionHandler(
string: &NSString,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler
)
where Self: Sized + ClassType { ... }
unsafe fn loadFromHTMLWithData_options_completionHandler(
data: &NSData,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler
)
where Self: Sized + ClassType { ... }
}
Available on crate feature
NSAttributedString
only.Expand description
Category on NSAttributedString
.
Provided Methods§
unsafe fn loadFromHTMLWithRequest_options_completionHandler( request: &NSURLRequest, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler )
Available on crate feature
block2
and crate feature objc2-app-kit
and macOS only.unsafe fn loadFromHTMLWithFileURL_options_completionHandler( file_url: &NSURL, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler )
Available on crate feature
block2
and crate feature objc2-app-kit
and macOS only.unsafe fn loadFromHTMLWithString_options_completionHandler( string: &NSString, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler )
Available on crate feature
block2
and crate feature objc2-app-kit
and macOS only.unsafe fn loadFromHTMLWithData_options_completionHandler( data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler )
Available on crate feature
block2
and crate feature objc2-app-kit
and macOS only.Object Safety§
This trait is not object safe.