pub(super) struct UnscaledPenAdapter<'a, T> {
sink: &'a mut T,
failed: bool,
last_start: Option<(f32, f32)>,
pending: Option<PendingElement>,
}
Expand description
Adapts an UnscaledOutlineSink to be fed from a pen while tracking memory allocation errors.
Fields§
§sink: &'a mut T
§failed: bool
§last_start: Option<(f32, f32)>
§pending: Option<PendingElement>
Implementations§
Source§impl<T> UnscaledPenAdapter<'_, T>where
T: UnscaledOutlineSink,
impl<T> UnscaledPenAdapter<'_, T>where
T: UnscaledOutlineSink,
Trait Implementations§
Source§impl<T: UnscaledOutlineSink> OutlinePen for UnscaledPenAdapter<'_, T>
impl<T: UnscaledOutlineSink> OutlinePen for UnscaledPenAdapter<'_, T>
Source§fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
Emit a quadratic bezier segment from the current point with a control
point at (cx0, cy0) and ending at (x, y).
Auto Trait Implementations§
impl<'a, T> Freeze for UnscaledPenAdapter<'a, T>
impl<'a, T> RefUnwindSafe for UnscaledPenAdapter<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for UnscaledPenAdapter<'a, T>where
T: Send,
impl<'a, T> Sync for UnscaledPenAdapter<'a, T>where
T: Sync,
impl<'a, T> Unpin for UnscaledPenAdapter<'a, T>
impl<'a, T> !UnwindSafe for UnscaledPenAdapter<'a, T>
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