#[non_exhaustive]pub struct HostBoxRule {
pub origin: Point,
pub width: Length,
pub height: Length,
}Expand description
A filled rectangle whose bottom left corner is origin, relative to the box’s baseline origin with y down.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.origin: PointBottom left corner.
width: LengthWidth to the right of the corner.
height: LengthHeight above the corner.
Implementations§
Trait Implementations§
Source§impl Clone for HostBoxRule
impl Clone for HostBoxRule
impl Copy for HostBoxRule
Source§impl Debug for HostBoxRule
impl Debug for HostBoxRule
impl Eq for HostBoxRule
Source§impl PartialEq for HostBoxRule
impl PartialEq for HostBoxRule
impl StructuralPartialEq for HostBoxRule
Auto Trait Implementations§
impl Freeze for HostBoxRule
impl RefUnwindSafe for HostBoxRule
impl Send for HostBoxRule
impl Sync for HostBoxRule
impl Unpin for HostBoxRule
impl UnsafeUnpin for HostBoxRule
impl UnwindSafe for HostBoxRule
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