pub struct SvgTextFont<'a> {
pub family: &'a str,
pub size: f32,
pub weight: &'a str,
pub style: &'a str,
}Expand description
The font of an SVG <text> element, as the values of its presentation attributes.
Fields§
§family: &'a strThe font-family list.
size: f32The font-size, in pixels.
weight: &'a strThe font-weight.
style: &'a strThe font-style.
Trait Implementations§
Source§impl<'a> Clone for SvgTextFont<'a>
impl<'a> Clone for SvgTextFont<'a>
impl<'a> Copy for SvgTextFont<'a>
Auto Trait Implementations§
impl<'a> Forget for SvgTextFont<'a>
impl<'a> Freeze for SvgTextFont<'a>
impl<'a> Move for SvgTextFont<'a>
impl<'a> RefUnwindSafe for SvgTextFont<'a>
impl<'a> Send for SvgTextFont<'a>
impl<'a> Sync for SvgTextFont<'a>
impl<'a> Unpin for SvgTextFont<'a>
impl<'a> UnsafeUnpin for SvgTextFont<'a>
impl<'a> UnwindSafe for SvgTextFont<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more