pub struct ImageSize {
pub width: DevicePixels,
pub height: DevicePixels,
}Expand description
An image’s size in pixels (Image.getSize); TS: PixelSize.
Fields§
§width: DevicePixelsWidth.
height: DevicePixelsHeight.
Implementations§
Trait Implementations§
impl Copy for ImageSize
Source§impl JsValue for ImageSize
TS: PixelSize ({ width, height }).
impl JsValue for ImageSize
TS: PixelSize ({ width, height }).
impl StructuralPartialEq for ImageSize
Auto Trait Implementations§
impl Forget for ImageSize
impl Freeze for ImageSize
impl Move for ImageSize
impl RefUnwindSafe for ImageSize
impl Send for ImageSize
impl Sync for ImageSize
impl Unpin for ImageSize
impl UnsafeUnpin for ImageSize
impl UnwindSafe for ImageSize
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
Source§impl<T> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.