pub struct TextDash {
pub pattern: Vec<f32>,
pub offset: f32,
}Expand description
Dashes along a box border, as SVG stroke-dasharray and stroke-dashoffset: they start at
the end of the top-left corner and run clockwise.
Fields§
§pattern: Vec<f32>Alternating dash and gap lengths, as fractions of the font size: one to
crate::MAX_DASH_ENTRIES entries in [0, 4], not all zero. An odd count repeats once
more to pair up.
offset: f32How far into the pattern the border starts, in font sizes, in [-16, 16].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextDash
impl<'de> Deserialize<'de> for TextDash
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TextDash
Auto Trait Implementations§
impl Forget for TextDash
impl Freeze for TextDash
impl Move for TextDash
impl RefUnwindSafe for TextDash
impl Send for TextDashwhere
RawVecInner: Send,
impl Sync for TextDashwhere
RawVecInner: Sync,
impl Unpin for TextDash
impl UnsafeUnpin for TextDash
impl UnwindSafe for TextDashwhere
RawVecInner: UnwindSafe,
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