pub struct Dimensions {
pub width: f64,
pub height: f64,
}
Fields§
§width: f64
§height: f64
Trait Implementations§
Source§impl Clone for Dimensions
impl Clone for Dimensions
Source§fn clone(&self) -> Dimensions
fn clone(&self) -> Dimensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<ClientRectObject> for Dimensions
impl From<ClientRectObject> for Dimensions
Source§fn from(child: ClientRectObject) -> Self
fn from(child: ClientRectObject) -> Self
Converts to this type from the input type.
Source§impl From<Rect> for Dimensions
impl From<Rect> for Dimensions
Source§impl Index<&Length> for Dimensions
impl Index<&Length> for Dimensions
Source§impl IndexMut<&Length> for Dimensions
impl IndexMut<&Length> for Dimensions
Source§impl TryFrom<JsValue> for Dimensions
impl TryFrom<JsValue> for Dimensions
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnwindSafe for Dimensions
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