#[repr(C)]pub struct NSAttributedString { /* private fields */ }icrate::Foundation has been moved to objc2-foundationFoundation and Foundation_NSAttributedString only.Implementations§
Source§impl NSAttributedString
NSAttributedStringDocumentFormats
impl NSAttributedString
NSAttributedStringDocumentFormats
pub unsafe fn initWithURL_options_documentAttributes_error( this: Allocated<Self>, url: &NSURL, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Result<Id<Self>, Id<NSError>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary and Foundation_NSError and Foundation_NSURL only.pub unsafe fn initWithData_options_documentAttributes_error( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Result<Id<Self>, Id<NSError>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary and Foundation_NSError only.pub unsafe fn dataFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Result<Id<NSData>, Id<NSError>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary and Foundation_NSError only.pub unsafe fn fileWrapperFromRange_documentAttributes_error( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Result<Id<NSFileWrapper>, Id<NSError>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary and Foundation_NSError and Foundation_NSFileWrapper only.pub unsafe fn initWithRTF_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn initWithRTFD_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn initWithHTML_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn initWithHTML_baseURL_documentAttributes( this: Allocated<Self>, data: &NSData, base: &NSURL, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary and Foundation_NSURL only.pub unsafe fn initWithDocFormat_documentAttributes( this: Allocated<Self>, data: &NSData, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn initWithHTML_options_documentAttributes( this: Allocated<Self>, data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn initWithRTFDFileWrapper_documentAttributes( this: Allocated<Self>, wrapper: &NSFileWrapper, dict: Option<&mut Option<Id<NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>>>>, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary and Foundation_NSFileWrapper only.pub unsafe fn RTFFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Id<NSData>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn RTFDFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Id<NSData>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.pub unsafe fn RTFDFileWrapperFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Id<NSFileWrapper>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary and Foundation_NSFileWrapper only.pub unsafe fn docFormatFromRange_documentAttributes( &self, range: NSRange, dict: &NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, ) -> Option<Id<NSData>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSData and Foundation_NSDictionary only.Source§impl NSAttributedString
NSAttributedStringKitAdditions
impl NSAttributedString
NSAttributedStringKitAdditions
pub unsafe fn fontAttributesInRange( &self, range: NSRange, ) -> Id<NSDictionary<NSAttributedStringKey, AnyObject>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary only.pub unsafe fn rulerAttributesInRange( &self, range: NSRange, ) -> Id<NSDictionary<NSAttributedStringKey, AnyObject>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSDictionary only.pub unsafe fn containsAttachmentsInRange(&self, range: NSRange) -> bool
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn lineBreakBeforeIndex_withinRange( &self, location: NSUInteger, a_range: NSRange, ) -> NSUInteger
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn lineBreakByHyphenatingBeforeIndex_withinRange( &self, location: NSUInteger, a_range: NSRange, ) -> NSUInteger
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn doubleClickAtIndex(&self, location: NSUInteger) -> NSRange
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn nextWordFromIndex_forward( &self, location: NSUInteger, is_forward: bool, ) -> NSUInteger
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn rangeOfTextBlock_atIndex( &self, block: &NSTextBlock, location: NSUInteger, ) -> NSRange
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSTextBlock only.pub unsafe fn rangeOfTextTable_atIndex( &self, table: &NSTextTable, location: NSUInteger, ) -> NSRange
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSTextTable only.pub unsafe fn rangeOfTextList_atIndex( &self, list: &NSTextList, location: NSUInteger, ) -> NSRange
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSTextList only.pub unsafe fn itemNumberInTextList_atIndex( &self, list: &NSTextList, location: NSUInteger, ) -> NSInteger
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSTextList only.Source§impl NSAttributedString
NSAttributedStringPasteboardAdditions
impl NSAttributedString
NSAttributedStringPasteboardAdditions
pub unsafe fn textTypes() -> Id<NSArray<NSString>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSArray and Foundation_NSString only.pub unsafe fn textUnfilteredTypes() -> Id<NSArray<NSString>>
icrate::AppKit has been moved to objc2-app-kitAppKit and Foundation_NSArray and Foundation_NSString only.Source§impl NSAttributedString
NSDeprecatedKitAdditions
impl NSAttributedString
NSDeprecatedKitAdditions
pub unsafe fn containsAttachments(&self) -> bool
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn textFileTypes() -> Id<NSArray>
AppKit and Foundation_NSArray only.pub unsafe fn textPasteboardTypes() -> Id<NSArray>
AppKit and Foundation_NSArray only.pub unsafe fn textUnfilteredFileTypes() -> Id<NSArray>
AppKit and Foundation_NSArray only.pub unsafe fn textUnfilteredPasteboardTypes() -> Id<NSArray>
AppKit and Foundation_NSArray only.pub unsafe fn initWithURL_documentAttributes( this: Allocated<Self>, url: &NSURL, dict: Option<&mut Option<Id<NSDictionary>>>, ) -> Option<Id<Self>>
AppKit and Foundation_NSDictionary and Foundation_NSURL only.pub unsafe fn initWithPath_documentAttributes( this: Allocated<Self>, path: &NSString, dict: Option<&mut Option<Id<NSDictionary>>>, ) -> Option<Id<Self>>
AppKit and Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn URLAtIndex_effectiveRange( &self, location: NSUInteger, effective_range: NSRangePointer, ) -> Option<Id<NSURL>>
AppKit and Foundation_NSURL only.Source§impl NSAttributedString
NSStringDrawing
impl NSAttributedString
NSStringDrawing
pub unsafe fn size(&self) -> NSSize
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn drawAtPoint(&self, point: NSPoint)
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn drawInRect(&self, rect: NSRect)
icrate::AppKit has been moved to objc2-app-kitAppKit only.Source§impl NSAttributedString
NSExtendedStringDrawing
impl NSAttributedString
NSExtendedStringDrawing
pub unsafe fn drawWithRect_options_context( &self, rect: NSRect, options: NSStringDrawingOptions, context: Option<&NSStringDrawingContext>, )
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSStringDrawingContext only.pub unsafe fn boundingRectWithSize_options_context( &self, size: NSSize, options: NSStringDrawingOptions, context: Option<&NSStringDrawingContext>, ) -> NSRect
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSStringDrawingContext only.Source§impl NSAttributedString
NSStringDrawingDeprecated
impl NSAttributedString
NSStringDrawingDeprecated
pub unsafe fn drawWithRect_options( &self, rect: NSRect, options: NSStringDrawingOptions, )
icrate::AppKit has been moved to objc2-app-kitAppKit only.pub unsafe fn boundingRectWithSize_options( &self, size: NSSize, options: NSStringDrawingOptions, ) -> NSRect
icrate::AppKit has been moved to objc2-app-kitAppKit only.Source§impl NSAttributedString
NSAttributedStringAttachmentConveniences
impl NSAttributedString
NSAttributedStringAttachmentConveniences
pub unsafe fn attributedStringWithAttachment( attachment: &NSTextAttachment, ) -> Id<NSAttributedString>
icrate::AppKit has been moved to objc2-app-kitAppKit and AppKit_NSTextAttachment only.Source§impl NSAttributedString
impl NSAttributedString
Sourcepub unsafe fn new_with_attributes(
string: &NSString,
attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
) -> Id<Self>
👎Deprecated: icrate::Foundation has been moved to objc2-foundationAvailable on crate features Foundation_NSDictionary and Foundation_NSString only.
pub unsafe fn new_with_attributes( string: &NSString, attributes: &NSDictionary<NSAttributedStringKey, AnyObject>, ) -> Id<Self>
icrate::Foundation has been moved to objc2-foundationFoundation_NSDictionary and Foundation_NSString only.Creates a new attributed string from the given string and attributes.
The attributes are associated with every UTF-16 code unit in the string.
§Safety
The attributes must be valid.
Sourcepub fn from_nsstring(string: &NSString) -> Id<Self>
👎Deprecated: icrate::Foundation has been moved to objc2-foundationAvailable on crate feature Foundation_NSString only.
pub fn from_nsstring(string: &NSString) -> Id<Self>
icrate::Foundation has been moved to objc2-foundationFoundation_NSString only.Creates a new attributed string without any attributes.
Source§impl NSAttributedString
impl NSAttributedString
pub fn string(&self) -> Id<NSString>
icrate::Foundation has been moved to objc2-foundationFoundation_NSString only.pub unsafe fn attributesAtIndex_effectiveRange( &self, location: NSUInteger, range: NSRangePointer, ) -> Id<NSDictionary<NSAttributedStringKey, AnyObject>>
icrate::Foundation has been moved to objc2-foundationFoundation_NSDictionary only.Source§impl NSAttributedString
Methods declared on superclass NSObject
impl NSAttributedString
Methods declared on superclass NSObject
Source§impl NSAttributedString
NSExtendedAttributedString
impl NSAttributedString
NSExtendedAttributedString
pub fn length(&self) -> NSUInteger
icrate::Foundation has been moved to objc2-foundationpub unsafe fn attribute_atIndex_effectiveRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer, ) -> Option<Id<AnyObject>>
icrate::Foundation has been moved to objc2-foundationpub unsafe fn attributedSubstringFromRange( &self, range: NSRange, ) -> Id<NSAttributedString>
icrate::Foundation has been moved to objc2-foundationpub unsafe fn attributesAtIndex_longestEffectiveRange_inRange( &self, location: NSUInteger, range: NSRangePointer, range_limit: NSRange, ) -> Id<NSDictionary<NSAttributedStringKey, AnyObject>>
icrate::Foundation has been moved to objc2-foundationFoundation_NSDictionary only.pub unsafe fn attribute_atIndex_longestEffectiveRange_inRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer, range_limit: NSRange, ) -> Option<Id<AnyObject>>
icrate::Foundation has been moved to objc2-foundationpub unsafe fn isEqualToAttributedString( &self, other: &NSAttributedString, ) -> bool
icrate::Foundation has been moved to objc2-foundationpub fn initWithString(this: Allocated<Self>, str: &NSString) -> Id<Self>
icrate::Foundation has been moved to objc2-foundationFoundation_NSString only.pub unsafe fn initWithString_attributes( this: Allocated<Self>, str: &NSString, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> Id<Self>
icrate::Foundation has been moved to objc2-foundationFoundation_NSDictionary and Foundation_NSString only.pub fn initWithAttributedString( this: Allocated<Self>, attr_str: &NSAttributedString, ) -> Id<Self>
icrate::Foundation has been moved to objc2-foundationpub unsafe fn enumerateAttributesInRange_options_usingBlock( &self, enumeration_range: NSRange, opts: NSAttributedStringEnumerationOptions, block: &Block<(NonNull<NSDictionary<NSAttributedStringKey, AnyObject>>, NSRange, NonNull<Bool>), ()>, )
icrate::Foundation has been moved to objc2-foundationFoundation_NSDictionary only.pub unsafe fn enumerateAttribute_inRange_options_usingBlock( &self, attr_name: &NSAttributedStringKey, enumeration_range: NSRange, opts: NSAttributedStringEnumerationOptions, block: &Block<(*mut AnyObject, NSRange, NonNull<Bool>), ()>, )
icrate::Foundation has been moved to objc2-foundationSource§impl NSAttributedString
NSAttributedStringCreateFromMarkdown
impl NSAttributedString
NSAttributedStringCreateFromMarkdown
pub unsafe fn initWithContentsOfMarkdownFileAtURL_options_baseURL_error( this: Allocated<Self>, markdown_file: &NSURL, options: Option<&NSAttributedStringMarkdownParsingOptions>, base_url: Option<&NSURL>, ) -> Result<Id<Self>, Id<NSError>>
icrate::Foundation has been moved to objc2-foundationFoundation_NSAttributedStringMarkdownParsingOptions and Foundation_NSError and Foundation_NSURL only.pub unsafe fn initWithMarkdown_options_baseURL_error( this: Allocated<Self>, markdown: &NSData, options: Option<&NSAttributedStringMarkdownParsingOptions>, base_url: Option<&NSURL>, ) -> Result<Id<Self>, Id<NSError>>
icrate::Foundation has been moved to objc2-foundationFoundation_NSAttributedStringMarkdownParsingOptions and Foundation_NSData and Foundation_NSError and Foundation_NSURL only.pub unsafe fn initWithMarkdownString_options_baseURL_error( this: Allocated<Self>, markdown_string: &NSString, options: Option<&NSAttributedStringMarkdownParsingOptions>, base_url: Option<&NSURL>, ) -> Result<Id<Self>, Id<NSError>>
icrate::Foundation has been moved to objc2-foundationFoundation_NSAttributedStringMarkdownParsingOptions and Foundation_NSError and Foundation_NSString and Foundation_NSURL only.impl NSAttributedString
NSAttributedStringFormatting
Source§impl NSAttributedString
NSMorphology
impl NSAttributedString
NSMorphology
pub unsafe fn attributedStringByInflectingString( &self, ) -> Id<NSAttributedString>
icrate::Foundation has been moved to objc2-foundationSource§impl NSAttributedString
NSAttributedStringWebKitAdditions
impl NSAttributedString
NSAttributedStringWebKitAdditions
pub unsafe fn loadFromHTMLWithRequest_options_completionHandler( request: &NSURLRequest, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler, )
icrate::WebKit has been moved to objc2-web-kitWebKit and Foundation_NSDictionary and Foundation_NSURLRequest only.pub unsafe fn loadFromHTMLWithFileURL_options_completionHandler( file_url: &NSURL, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler, )
icrate::WebKit has been moved to objc2-web-kitWebKit and Foundation_NSDictionary and Foundation_NSURL only.pub unsafe fn loadFromHTMLWithString_options_completionHandler( string: &NSString, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler, )
icrate::WebKit has been moved to objc2-web-kitWebKit and Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn loadFromHTMLWithData_options_completionHandler( data: &NSData, options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>, completion_handler: NSAttributedStringCompletionHandler, )
icrate::WebKit has been moved to objc2-web-kitWebKit and Foundation_NSData and Foundation_NSDictionary only.Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Available on crate feature AuthenticationServices only.
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
AuthenticationServices only.Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.Use Ivar::load_mut instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Trait Implementations§
Source§impl AsMut<AnyObject> for NSAttributedString
impl AsMut<AnyObject> for NSAttributedString
Source§impl AsMut<NSAttributedString> for NSMutableAttributedString
impl AsMut<NSAttributedString> for NSMutableAttributedString
Source§fn as_mut(&mut self) -> &mut NSAttributedString
fn as_mut(&mut self) -> &mut NSAttributedString
Source§impl AsMut<NSAttributedString> for NSTextStorage
Available on crate feature AppKit only.
impl AsMut<NSAttributedString> for NSTextStorage
AppKit only.Source§fn as_mut(&mut self) -> &mut NSAttributedString
fn as_mut(&mut self) -> &mut NSAttributedString
Source§impl AsMut<NSObject> for NSAttributedString
impl AsMut<NSObject> for NSAttributedString
Source§impl AsRef<AnyObject> for NSAttributedString
impl AsRef<AnyObject> for NSAttributedString
Source§impl AsRef<NSAttributedString> for NSMutableAttributedString
impl AsRef<NSAttributedString> for NSMutableAttributedString
Source§fn as_ref(&self) -> &NSAttributedString
fn as_ref(&self) -> &NSAttributedString
Source§impl AsRef<NSAttributedString> for NSTextStorage
Available on crate feature AppKit only.
impl AsRef<NSAttributedString> for NSTextStorage
AppKit only.Source§fn as_ref(&self) -> &NSAttributedString
fn as_ref(&self) -> &NSAttributedString
Source§impl AsRef<NSObject> for NSAttributedString
impl AsRef<NSObject> for NSAttributedString
Source§impl Borrow<AnyObject> for NSAttributedString
impl Borrow<AnyObject> for NSAttributedString
Source§impl Borrow<NSAttributedString> for NSMutableAttributedString
impl Borrow<NSAttributedString> for NSMutableAttributedString
Source§fn borrow(&self) -> &NSAttributedString
fn borrow(&self) -> &NSAttributedString
Source§impl Borrow<NSAttributedString> for NSTextStorage
Available on crate feature AppKit only.
impl Borrow<NSAttributedString> for NSTextStorage
AppKit only.Source§fn borrow(&self) -> &NSAttributedString
fn borrow(&self) -> &NSAttributedString
Source§impl Borrow<NSObject> for NSAttributedString
impl Borrow<NSObject> for NSAttributedString
Source§impl BorrowMut<AnyObject> for NSAttributedString
impl BorrowMut<AnyObject> for NSAttributedString
Source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Source§impl BorrowMut<NSAttributedString> for NSMutableAttributedString
impl BorrowMut<NSAttributedString> for NSMutableAttributedString
Source§fn borrow_mut(&mut self) -> &mut NSAttributedString
fn borrow_mut(&mut self) -> &mut NSAttributedString
Source§impl BorrowMut<NSAttributedString> for NSTextStorage
Available on crate feature AppKit only.
impl BorrowMut<NSAttributedString> for NSTextStorage
AppKit only.Source§fn borrow_mut(&mut self) -> &mut NSAttributedString
fn borrow_mut(&mut self) -> &mut NSAttributedString
Source§impl BorrowMut<NSObject> for NSAttributedString
impl BorrowMut<NSObject> for NSAttributedString
Source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Source§impl ClassType for NSAttributedString
impl ClassType for NSAttributedString
Source§const NAME: &'static str = "NSAttributedString"
const NAME: &'static str = "NSAttributedString"
Source§type Mutability = ImmutableWithMutableSubclass<NSMutableAttributedString>
type Mutability = ImmutableWithMutableSubclass<NSMutableAttributedString>
Source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Source§impl Debug for NSAttributedString
impl Debug for NSAttributedString
Source§impl DefaultId for NSAttributedString
impl DefaultId for NSAttributedString
Source§impl Deref for NSAttributedString
impl Deref for NSAttributedString
Source§impl DerefMut for NSAttributedString
impl DerefMut for NSAttributedString
Source§impl Hash for NSAttributedString
impl Hash for NSAttributedString
Source§impl NSCoding for NSAttributedString
impl NSCoding for NSAttributedString
Source§unsafe fn encodeWithCoder(&self, coder: &NSCoder)
unsafe fn encodeWithCoder(&self, coder: &NSCoder)
icrate::Foundation has been moved to objc2-foundationFoundation_NSCoder only.Source§impl NSCopying for NSAttributedString
impl NSCopying for NSAttributedString
Source§impl NSMutableCopying for NSAttributedString
impl NSMutableCopying for NSAttributedString
Source§impl NSObjectProtocol for NSAttributedString
impl NSObjectProtocol for NSAttributedString
Source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
Source§impl NSPasteboardReading for NSAttributedString
Available on crate feature AppKit only.
impl NSPasteboardReading for NSAttributedString
AppKit only.Source§unsafe fn readableTypesForPasteboard(
pasteboard: &NSPasteboard,
) -> Id<NSArray<NSPasteboardType>>
unsafe fn readableTypesForPasteboard( pasteboard: &NSPasteboard, ) -> Id<NSArray<NSPasteboardType>>
icrate::AppKit has been moved to objc2-app-kitAppKit_NSPasteboard and Foundation_NSArray only.Source§unsafe fn readingOptionsForType_pasteboard(
type: &NSPasteboardType,
pasteboard: &NSPasteboard,
) -> NSPasteboardReadingOptions
unsafe fn readingOptionsForType_pasteboard( type: &NSPasteboardType, pasteboard: &NSPasteboard, ) -> NSPasteboardReadingOptions
icrate::AppKit has been moved to objc2-app-kitAppKit_NSPasteboard only.Source§unsafe fn initWithPasteboardPropertyList_ofType(
this: Allocated<Self>,
property_list: &AnyObject,
type: &NSPasteboardType,
) -> Option<Id<Self>>
unsafe fn initWithPasteboardPropertyList_ofType( this: Allocated<Self>, property_list: &AnyObject, type: &NSPasteboardType, ) -> Option<Id<Self>>
icrate::AppKit has been moved to objc2-app-kitSource§impl NSPasteboardWriting for NSAttributedString
Available on crate feature AppKit only.
impl NSPasteboardWriting for NSAttributedString
AppKit only.Source§unsafe fn writableTypesForPasteboard(
&self,
pasteboard: &NSPasteboard,
) -> Id<NSArray<NSPasteboardType>>
unsafe fn writableTypesForPasteboard( &self, pasteboard: &NSPasteboard, ) -> Id<NSArray<NSPasteboardType>>
icrate::AppKit has been moved to objc2-app-kitAppKit_NSPasteboard and Foundation_NSArray only.Source§unsafe fn writingOptionsForType_pasteboard(
&self,
type: &NSPasteboardType,
pasteboard: &NSPasteboard,
) -> NSPasteboardWritingOptions
unsafe fn writingOptionsForType_pasteboard( &self, type: &NSPasteboardType, pasteboard: &NSPasteboard, ) -> NSPasteboardWritingOptions
icrate::AppKit has been moved to objc2-app-kitAppKit_NSPasteboard only.Source§unsafe fn pasteboardPropertyListForType(
&self,
type: &NSPasteboardType,
) -> Option<Id<AnyObject>>
unsafe fn pasteboardPropertyListForType( &self, type: &NSPasteboardType, ) -> Option<Id<AnyObject>>
icrate::AppKit has been moved to objc2-app-kit