Struct webrender::internal_types::LayoutPrimitiveInfo
source · 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: LayoutRect
NOTE: 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: PrimitiveFlags
Implementations§
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 copy 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> 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