pub struct PaintedPath { /* private fields */ }Implementations§
Source§impl PaintedPath
impl PaintedPath
Sourcepub fn new(
path: Path,
scale_factor: f32,
content_mask: ContentMask<Pixels>,
color: Background,
) -> Self
pub fn new( path: Path, scale_factor: f32, content_mask: ContentMask<Pixels>, color: Background, ) -> Self
Bins path into tiles, to be filled with color within content_mask.
pub fn tile_count(&self) -> usize
pub fn append_to( &self, paints: &mut Vec<PathPaint>, curves: &mut Vec<PathCurve>, tiles: &mut Vec<PathTile>, )
Trait Implementations§
Source§impl Clone for PaintedPath
impl Clone for PaintedPath
Source§impl Debug for PaintedPath
impl Debug for PaintedPath
Source§impl From<PaintedPath> for Primitive
impl From<PaintedPath> for Primitive
Source§fn from(path: PaintedPath) -> Self
fn from(path: PaintedPath) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for PaintedPath
impl !Sync for PaintedPath
impl Forget for PaintedPath
impl Freeze for PaintedPath
impl Move for PaintedPath
impl RefUnwindSafe for PaintedPath
impl Unpin for PaintedPath
impl UnsafeUnpin for PaintedPath
impl UnwindSafe for PaintedPath
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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