pub struct ViewBox {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
The coordinate space a shape states its outline in.
Fields§
§x: f32The left edge.
y: f32The top edge.
width: f32How wide.
height: f32How tall.
Trait Implementations§
impl Copy for ViewBox
impl StructuralPartialEq for ViewBox
Auto Trait Implementations§
impl Freeze for ViewBox
impl RefUnwindSafe for ViewBox
impl Send for ViewBox
impl Sync for ViewBox
impl Unpin for ViewBox
impl UnsafeUnpin for ViewBox
impl UnwindSafe for ViewBox
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