pub unsafe trait NSAttributedStringAttachmentConveniences:
ClassType
+ Sized
+ Sealed {
// Provided methods
fn attributedStringWithAttachment(
attachment: &NSTextAttachment,
) -> Retained<NSAttributedString> { ... }
unsafe fn attributedStringWithAttachment_attributes(
attachment: &NSTextAttachment,
attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
) -> Retained<Self> { ... }
}
Available on crate feature
NSTextAttachment
only.Expand description
Category on NSAttributedString
.
Provided Methods§
fn attributedStringWithAttachment( attachment: &NSTextAttachment, ) -> Retained<NSAttributedString>
Sourceunsafe fn attributedStringWithAttachment_attributes(
attachment: &NSTextAttachment,
attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
) -> Retained<Self>
unsafe fn attributedStringWithAttachment_attributes( attachment: &NSTextAttachment, attributes: &NSDictionary<NSAttributedStringKey, AnyObject>, ) -> Retained<Self>
§Safety
attributes
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.