pub unsafe trait NSAttributedStringDocumentFormats: ClassType {
Show 15 methods
// 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>>
where Self: Sized + Message { ... }
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>>
where Self: Sized + Message { ... }
unsafe fn dataFromRange_documentAttributes_error(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Result<Retained<NSData>, Retained<NSError>>
where Self: Sized + Message { ... }
unsafe fn fileWrapperFromRange_documentAttributes_error(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Result<Retained<NSFileWrapper>, Retained<NSError>>
where Self: Sized + Message { ... }
unsafe fn initWithRTF_documentAttributes(
this: Allocated<Self>,
data: &NSData,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
unsafe fn initWithRTFD_documentAttributes(
this: Allocated<Self>,
data: &NSData,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
unsafe fn initWithHTML_documentAttributes(
this: Allocated<Self>,
data: &NSData,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
unsafe fn initWithHTML_baseURL_documentAttributes(
this: Allocated<Self>,
data: &NSData,
base: &NSURL,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
unsafe fn initWithDocFormat_documentAttributes(
this: Allocated<Self>,
data: &NSData,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
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>>
where Self: Sized + Message { ... }
unsafe fn initWithRTFDFileWrapper_documentAttributes(
this: Allocated<Self>,
wrapper: &NSFileWrapper,
dict: Option<&mut Option<Retained<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>
) -> Option<Retained<Self>>
where Self: Sized + Message { ... }
unsafe fn RTFFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Option<Retained<NSData>>
where Self: Sized + Message { ... }
unsafe fn RTFDFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Option<Retained<NSData>>
where Self: Sized + Message { ... }
unsafe fn RTFDFileWrapperFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Option<Retained<NSFileWrapper>>
where Self: Sized + Message { ... }
unsafe fn docFormatFromRange_documentAttributes(
&self,
range: NSRange,
dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>
) -> Option<Retained<NSData>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSAttributedString
only.Expand description
Category on NSAttributedString
.
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>>
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>>
Object Safety§
This trait is not object safe.