#[non_exhaustive]pub enum StrokeWidth {
Length(Length),
Percentage(Percentage),
Number(f64),
}Expand description
A value of stroke-width.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for StrokeWidth
impl Clone for StrokeWidth
Source§fn clone(&self) -> StrokeWidth
fn clone(&self) -> StrokeWidth
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 moreSource§impl Debug for StrokeWidth
impl Debug for StrokeWidth
Source§impl Display for StrokeWidth
impl Display for StrokeWidth
Source§impl From<Length> for StrokeWidth
impl From<Length> for StrokeWidth
Source§impl From<Percentage> for StrokeWidth
impl From<Percentage> for StrokeWidth
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<f64> for StrokeWidth
impl From<f64> for StrokeWidth
Source§impl From<i32> for StrokeWidth
impl From<i32> for StrokeWidth
Source§impl PartialEq for StrokeWidth
impl PartialEq for StrokeWidth
impl StructuralPartialEq for StrokeWidth
Auto Trait Implementations§
impl Freeze for StrokeWidth
impl RefUnwindSafe for StrokeWidth
impl Send for StrokeWidth
impl Sync for StrokeWidth
impl Unpin for StrokeWidth
impl UnsafeUnpin for StrokeWidth
impl UnwindSafe for StrokeWidth
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