pub struct RelativeRect {
pub left: Option<Percent1000>,
pub top: Option<Percent1000>,
pub right: Option<Percent1000>,
pub bottom: Option<Percent1000>,
/* private fields */
}Expand description
A rectangle expressed as optional percentages from each edge.
Fields§
§left: Option<Percent1000>§top: Option<Percent1000>§right: Option<Percent1000>§bottom: Option<Percent1000>Trait Implementations§
Source§impl Clone for RelativeRect
impl Clone for RelativeRect
Source§fn clone(&self) -> RelativeRect
fn clone(&self) -> RelativeRect
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 moreSource§impl Debug for RelativeRect
impl Debug for RelativeRect
Source§impl Default for RelativeRect
impl Default for RelativeRect
Source§fn default() -> RelativeRect
fn default() -> RelativeRect
Returns the “default value” for a type. Read more
impl Eq for RelativeRect
Source§impl PartialEq for RelativeRect
impl PartialEq for RelativeRect
impl StructuralPartialEq for RelativeRect
Auto Trait Implementations§
impl Freeze for RelativeRect
impl RefUnwindSafe for RelativeRect
impl Send for RelativeRect
impl Sync for RelativeRect
impl Unpin for RelativeRect
impl UnsafeUnpin for RelativeRect
impl UnwindSafe for RelativeRect
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