NSAttributedStringAppKitDocumentFormats

Trait NSAttributedStringAppKitDocumentFormats 

Source
pub unsafe trait NSAttributedStringAppKitDocumentFormats:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn initWithRTF_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithRTFD_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithHTML_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithHTML_baseURL_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        base: &NSURL,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithDocFormat_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithHTML_options_documentAttributes(
        this: Allocated<Self>,
        data: &NSData,
        options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithRTFDFileWrapper_documentAttributes(
        this: Allocated<Self>,
        wrapper: &NSFileWrapper,
        dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn RTFFromRange_documentAttributes(
        &self,
        range: NSRange,
        dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
    ) -> Option<Retained<NSData>> { ... }
    unsafe fn RTFDFromRange_documentAttributes(
        &self,
        range: NSRange,
        dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
    ) -> Option<Retained<NSData>> { ... }
    unsafe fn RTFDFileWrapperFromRange_documentAttributes(
        &self,
        range: NSRange,
        dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
    ) -> Option<Retained<NSFileWrapper>> { ... }
    unsafe fn docFormatFromRange_documentAttributes(
        &self,
        range: NSRange,
        dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
    ) -> Option<Retained<NSData>> { ... }
}
Available on crate feature NSAttributedString only.
Expand description

Category on NSAttributedString.

Provided Methods§

Source

unsafe fn initWithRTF_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn initWithRTFD_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn initWithHTML_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn initWithHTML_baseURL_documentAttributes( this: Allocated<Self>, data: &NSData, base: &NSURL, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn initWithDocFormat_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn initWithHTML_options_documentAttributes( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

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

unsafe fn initWithRTFDFileWrapper_documentAttributes( this: Allocated<Self>, wrapper: &NSFileWrapper, dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Retained<Self>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn RTFFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSData>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn RTFDFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSData>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn RTFDFileWrapperFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSFileWrapper>>

§Safety

dict generic should be of the correct type.

Source

unsafe fn docFormatFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSData>>

§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 NSAttributedStringAppKitDocumentFormats for NSAttributedString

Implementors§