[−][src]Enum plotters::prelude::FontFamily
Describes font family. This can be either a specific font family name, such as "arial", or a general font family class, such as "serif" and "sans-serif"
Variants
The system default serif font family
The system default sans-serif font family
The system default monospace font
Name(&'a str)
A specific font family name
Methods
impl<'a> FontFamily<'a>
[src]
pub fn as_str(&self) -> &str
[src]
Make a CSS compatible string for the font family name.
This can be used as the value of font-family
attribute in SVG.
Trait Implementations
impl<'a> IntoTextStyle<'a> for FontFamily<'a>
[src]
fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'a>
[src]
impl<'a> Clone for FontFamily<'a>
[src]
fn clone(&self) -> FontFamily<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> From<&'a str> for FontFamily<'a>
[src]
fn from(from: &'a str) -> FontFamily<'a>
[src]
impl<'a> From<FontFamily<'a>> for FontDesc<'a>
[src]
fn from(family: FontFamily<'a>) -> FontDesc<'a>
[src]
impl<'a> Copy for FontFamily<'a>
[src]
Auto Trait Implementations
impl<'a> Send for FontFamily<'a>
impl<'a> Unpin for FontFamily<'a>
impl<'a> Sync for FontFamily<'a>
impl<'a> UnwindSafe for FontFamily<'a>
impl<'a> RefUnwindSafe for FontFamily<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,