#[non_exhaustive]pub enum StrokeDasharray {
None,
Length(Length),
Percentage(Percentage),
Number(f64),
Raw(Raw),
}Expand description
A value of stroke-dasharray.
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.
None
none.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Number(f64)
A number.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for StrokeDasharray
impl Clone for StrokeDasharray
Source§fn clone(&self) -> StrokeDasharray
fn clone(&self) -> StrokeDasharray
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 StrokeDasharray
impl Debug for StrokeDasharray
Source§impl Display for StrokeDasharray
impl Display for StrokeDasharray
Source§impl From<Length> for StrokeDasharray
impl From<Length> for StrokeDasharray
Source§impl From<Percentage> for StrokeDasharray
impl From<Percentage> for StrokeDasharray
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for StrokeDasharray
impl From<Raw> for StrokeDasharray
Source§impl From<f64> for StrokeDasharray
impl From<f64> for StrokeDasharray
Source§impl From<i32> for StrokeDasharray
impl From<i32> for StrokeDasharray
Source§impl PartialEq for StrokeDasharray
impl PartialEq for StrokeDasharray
impl StructuralPartialEq for StrokeDasharray
Auto Trait Implementations§
impl Freeze for StrokeDasharray
impl RefUnwindSafe for StrokeDasharray
impl Send for StrokeDasharray
impl Sync for StrokeDasharray
impl Unpin for StrokeDasharray
impl UnsafeUnpin for StrokeDasharray
impl UnwindSafe for StrokeDasharray
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