pub struct LayoutBounds {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
A node’s live border box, encoded on the wire as [x, y, width, height].
Named fields keep consumers out of positional indexing while the custom array conversion preserves compatibility with existing inspectors.
Fields§
§x: f64§y: f64§width: f64§height: f64Trait Implementations§
Source§impl Clone for LayoutBounds
impl Clone for LayoutBounds
Source§fn clone(&self) -> LayoutBounds
fn clone(&self) -> LayoutBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutBounds
Source§impl Debug for LayoutBounds
impl Debug for LayoutBounds
Source§impl Default for LayoutBounds
impl Default for LayoutBounds
Source§fn default() -> LayoutBounds
fn default() -> LayoutBounds
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutBounds
impl<'de> Deserialize<'de> for LayoutBounds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LayoutBounds> for [f64; 4]
impl From<LayoutBounds> for [f64; 4]
Source§fn from(bounds: LayoutBounds) -> Self
fn from(bounds: LayoutBounds) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LayoutBounds
impl PartialEq for LayoutBounds
Source§impl Serialize for LayoutBounds
impl Serialize for LayoutBounds
impl StructuralPartialEq for LayoutBounds
Auto Trait Implementations§
impl Freeze for LayoutBounds
impl RefUnwindSafe for LayoutBounds
impl Send for LayoutBounds
impl Sync for LayoutBounds
impl Unpin for LayoutBounds
impl UnsafeUnpin for LayoutBounds
impl UnwindSafe for LayoutBounds
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