NSMutableAttributedStringDocumentFormats

Trait NSMutableAttributedStringDocumentFormats 

Source
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

Provided Methods§

Source

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.
Source

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.

Implementations on Foreign Types§

Source§

impl NSMutableAttributedStringDocumentFormats for NSMutableAttributedString

Implementors§