pub struct SegmentBuilder {
    items: Vec<Item>,
    inner_rect: Option<LayoutRect>,
    bounding_rect: Option<LayoutRect>,
    has_interesting_clips: bool,
    initialized: bool,
}Fields§
§items: Vec<Item>§inner_rect: Option<LayoutRect>§bounding_rect: Option<LayoutRect>§has_interesting_clips: bool§initialized: boolImplementations§
Source§impl SegmentBuilder
 
impl SegmentBuilder
pub fn new() -> SegmentBuilder
pub fn initialize( &mut self, local_rect: LayoutRect, inner_rect: Option<LayoutRect>, local_clip_rect: LayoutRect, )
pub fn push_mask_region( &mut self, outer_rect: LayoutRect, inner_rect: LayoutRect, inner_clip_mode: Option<ClipMode>, )
pub fn push_clip_rect( &mut self, rect: LayoutRect, radius: Option<BorderRadius>, mode: ClipMode, )
pub fn build<F>(&mut self, f: F)
Auto Trait Implementations§
impl Freeze for SegmentBuilder
impl RefUnwindSafe for SegmentBuilder
impl Send for SegmentBuilder
impl Sync for SegmentBuilder
impl Unpin for SegmentBuilder
impl UnwindSafe for SegmentBuilder
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