pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new() -> Self
pub fn builder() -> PathBuilder
pub fn rect(rect: Rect) -> Self
pub fn circle(center: Point, radius: f32) -> Self
pub fn rounded_rect(rect: Rect, radius: f32) -> Self
pub fn arc( center: Point, radius: f32, start_angle: f32, sweep_angle: f32, ) -> Self
pub fn elements(&self) -> &[PathElement]
pub const fn bounds(&self) -> Rect
pub fn is_empty(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Forget for Path
impl Freeze for Path
impl Move for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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