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

Source

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

Source

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

Source

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

Source

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

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

Source

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

Source

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

Source

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

Source

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

Source

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

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§