pub struct BrushInstance {
    pub prim_header_index: PrimitiveHeaderIndex,
    pub clip_task_address: RenderTaskAddress,
    pub segment_index: i32,
    pub edge_flags: EdgeAaSegmentMask,
    pub brush_flags: BrushFlags,
    pub resource_address: i32,
}Expand description
Convenience structure to encode into PrimitiveInstanceData.
Fields§
§prim_header_index: PrimitiveHeaderIndex§clip_task_address: RenderTaskAddress§segment_index: i32§edge_flags: EdgeAaSegmentMask§brush_flags: BrushFlags§resource_address: i32Trait Implementations§
Source§impl From<BrushInstance> for PrimitiveInstanceData
 
impl From<BrushInstance> for PrimitiveInstanceData
Source§fn from(instance: BrushInstance) -> Self
 
fn from(instance: BrushInstance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrushInstance
impl RefUnwindSafe for BrushInstance
impl Send for BrushInstance
impl Sync for BrushInstance
impl Unpin for BrushInstance
impl UnwindSafe for BrushInstance
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