pub struct LayoutPrimitiveInfo {
    pub rect: LayoutRect,
    pub clip_rect: LayoutRect,
    pub flags: PrimitiveFlags,
}Expand description
Primitive metadata we pass around in a bunch of places
Fields§
§rect: LayoutRectNOTE: this is ideally redundant with the clip_rect but that’s an ongoing project, so for now it exists and is used :(
clip_rect: LayoutRect§flags: PrimitiveFlagsImplementations§
Source§impl LayoutPrimitiveInfo
 
impl LayoutPrimitiveInfo
pub fn with_clip_rect(rect: LayoutRect, clip_rect: LayoutRect) -> Self
Trait Implementations§
Source§impl Clone for LayoutPrimitiveInfo
 
impl Clone for LayoutPrimitiveInfo
Source§fn clone(&self) -> LayoutPrimitiveInfo
 
fn clone(&self) -> LayoutPrimitiveInfo
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 Debug for LayoutPrimitiveInfo
 
impl Debug for LayoutPrimitiveInfo
Source§impl From<&LayoutPrimitiveInfo> for PrimKeyCommonData
 
impl From<&LayoutPrimitiveInfo> for PrimKeyCommonData
Source§fn from(info: &LayoutPrimitiveInfo) -> Self
 
fn from(info: &LayoutPrimitiveInfo) -> Self
Converts to this type from the input type.
impl Copy for LayoutPrimitiveInfo
Auto Trait Implementations§
impl Freeze for LayoutPrimitiveInfo
impl RefUnwindSafe for LayoutPrimitiveInfo
impl Send for LayoutPrimitiveInfo
impl Sync for LayoutPrimitiveInfo
impl Unpin for LayoutPrimitiveInfo
impl UnwindSafe for LayoutPrimitiveInfo
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more