Struct core_graphics2::geometry::CGSize
source · #[repr(C)]pub struct CGSize {
pub width: CGFloat,
pub height: CGFloat,
}Fields§
§width: CGFloat§height: CGFloatImplementations§
source§impl CGSize
impl CGSize
pub fn new(width: CGFloat, height: CGFloat) -> CGSize
pub fn from_dict_representation(dict: &CFDictionary) -> Option<Self>
pub fn apply_transform(&self, transform: &CGAffineTransform) -> CGSize
Trait Implementations§
source§impl PartialEq for CGSize
impl PartialEq for CGSize
impl Copy for CGSize
impl StructuralPartialEq for CGSize
Auto Trait Implementations§
impl Freeze for CGSize
impl RefUnwindSafe for CGSize
impl Send for CGSize
impl Sync for CGSize
impl Unpin for CGSize
impl UnwindSafe for CGSize
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more