pub struct MiterLimit(/* private fields */);Expand description
The ratio of miter length to line width past which a LineJoin::Miter
corner is drawn beveled instead — ISO 32000-1 §8.4.3.5’s M.
A newtype rather than a bare f64 because the value has a floor: the
miter length is never shorter than the line width, so a ratio below 1
asks for something that cannot happen. It clamps rather than refusing,
unlike Dash, because every out-of-range ratio has one obviously
intended reading and none of them makes a reader reject the stream.
Implementations§
Source§impl MiterLimit
impl MiterLimit
Trait Implementations§
Source§impl Clone for MiterLimit
impl Clone for MiterLimit
Source§fn clone(&self) -> MiterLimit
fn clone(&self) -> MiterLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MiterLimit
Source§impl Debug for MiterLimit
impl Debug for MiterLimit
Source§impl Default for MiterLimit
impl Default for MiterLimit
Source§impl PartialEq for MiterLimit
impl PartialEq for MiterLimit
Source§impl PartialOrd for MiterLimit
impl PartialOrd for MiterLimit
impl StructuralPartialEq for MiterLimit
Auto Trait Implementations§
impl Freeze for MiterLimit
impl RefUnwindSafe for MiterLimit
impl Send for MiterLimit
impl Sync for MiterLimit
impl Unpin for MiterLimit
impl UnsafeUnpin for MiterLimit
impl UnwindSafe for MiterLimit
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