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§
Sourceunsafe fn initWithRTF_documentAttributes(
this: Allocated<Self>,
data: &NSData,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>,
) -> Option<Retained<Self>>
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.
Sourceunsafe fn initWithRTFD_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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn initWithHTML_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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn initWithHTML_baseURL_documentAttributes(
this: Allocated<Self>,
data: &NSData,
base: &NSURL,
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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn initWithDocFormat_documentAttributes(
this: Allocated<Self>,
data: &NSData,
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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe 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 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.
Sourceunsafe fn initWithRTFDFileWrapper_documentAttributes(
this: Allocated<Self>,
wrapper: &NSFileWrapper,
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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn RTFFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
) -> Option<Retained<NSData>>
unsafe fn RTFFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSData>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn RTFDFromRange_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>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn RTFDFileWrapperFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
) -> Option<Retained<NSFileWrapper>>
unsafe fn RTFDFileWrapperFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Retained<NSFileWrapper>>
§Safety
dict
generic should be of the correct type.
Sourceunsafe fn docFormatFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
) -> Option<Retained<NSData>>
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.