pub unsafe trait NSStringDrawing:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn sizeWithAttributes(
&self,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) -> CGSize { ... }
unsafe fn drawAtPoint_withAttributes(
&self,
point: CGPoint,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) { ... }
unsafe fn drawInRect_withAttributes(
&self,
rect: CGRect,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) { ... }
}Available on crate feature
NSStringDrawing only.Expand description
Category on NSString.
Provided Methods§
Sourceunsafe fn sizeWithAttributes(
&self,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) -> CGSize
Available on crate feature objc2-core-foundation only.
unsafe fn sizeWithAttributes( &self, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> CGSize
objc2-core-foundation only.§Safety
attrs generic should be of the correct type.
Sourceunsafe fn drawAtPoint_withAttributes(
&self,
point: CGPoint,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
Available on crate feature objc2-core-foundation only.
unsafe fn drawAtPoint_withAttributes( &self, point: CGPoint, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
objc2-core-foundation only.§Safety
attrs generic should be of the correct type.
Sourceunsafe fn drawInRect_withAttributes(
&self,
rect: CGRect,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
Available on crate feature objc2-core-foundation only.
unsafe fn drawInRect_withAttributes( &self, rect: CGRect, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
objc2-core-foundation only.§Safety
attrs 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".