pub unsafe trait NSStringDrawingDeprecated:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn drawWithRect_options_attributes(
&self,
rect: NSRect,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) { ... }
unsafe fn boundingRectWithSize_options_attributes(
&self,
size: NSSize,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) -> NSRect { ... }
}
Available on crate feature
NSStringDrawing
only.Expand description
Category on NSString
.
********************** Deprecated ***********************
Provided Methods§
Sourceunsafe fn drawWithRect_options_attributes(
&self,
rect: NSRect,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
unsafe fn drawWithRect_options_attributes( &self, rect: NSRect, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
§Safety
attributes
generic should be of the correct type.
Sourceunsafe fn boundingRectWithSize_options_attributes(
&self,
size: NSSize,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) -> NSRect
unsafe fn boundingRectWithSize_options_attributes( &self, size: NSSize, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> NSRect
§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.