pub unsafe trait NSMutableAttributedStringDocumentFormats:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn readFromURL_options_documentAttributes_error(
&self,
url: &NSURL,
opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
) -> Result<(), Retained<NSError>> { ... }
unsafe fn readFromData_options_documentAttributes_error(
&self,
data: &NSData,
opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
) -> Result<(), Retained<NSError>> { ... }
}
Available on crate feature
NSAttributedString
only.Expand description
Category on NSMutableAttributedString
.
Provided Methods§
Sourceunsafe fn readFromURL_options_documentAttributes_error(
&self,
url: &NSURL,
opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
) -> Result<(), Retained<NSError>>
unsafe fn readFromURL_options_documentAttributes_error( &self, url: &NSURL, opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Result<(), Retained<NSError>>
§Safety
opts
generic should be of the correct type.dict
generic should be of the correct type.
Sourceunsafe fn readFromData_options_documentAttributes_error(
&self,
data: &NSData,
opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
) -> Result<(), Retained<NSError>>
unsafe fn readFromData_options_documentAttributes_error( &self, data: &NSData, opts: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Result<(), Retained<NSError>>
§Safety
opts
generic should be of the correct type.dict
generic should be of the correct type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.