NSAttributedStringDocumentFormats

Trait NSAttributedStringDocumentFormats 

Source
pub unsafe trait NSAttributedStringDocumentFormats:
    ClassType
    + Sized
    + Sealed {
    // 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>> { ... }
}
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>>

§Safety
  • options generic should be of the correct type.
  • dict generic should be of the correct type.
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>>

§Safety
  • options generic should be of the correct type.
  • dict generic should be of the correct type.
Source

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

§Safety

dict generic should be of the correct type.

Source

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

§Safety

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 NSAttributedStringDocumentFormats for NSAttributedString

Implementors§