pub enum FontFamily<S = &'static str> {
Generic(GenericFontFamily),
Named(S),
}Expand description
Controls the font family that produces the glyphs that are drawn for a text.
Variants§
Generic(GenericFontFamily)
This is a system-dependent font family in the given generic category.
Named(S)
This is a specific font family referred to by its PostScript name.
Trait Implementations§
Source§impl<S> Clone for FontFamily<S>where
S: Clone,
impl<S> Clone for FontFamily<S>where
S: Clone,
Source§fn clone(&self) -> FontFamily<S>
fn clone(&self) -> FontFamily<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for FontFamily<S>where
S: Debug,
impl<S> Debug for FontFamily<S>where
S: Debug,
Source§impl<S> FromStr for FontFamily<S>
impl<S> FromStr for FontFamily<S>
Source§impl<S> PartialEq for FontFamily<S>where
S: PartialEq,
impl<S> PartialEq for FontFamily<S>where
S: PartialEq,
Source§impl<T> ToTokens for FontFamily<T>where
T: ToTokens,
impl<T> ToTokens for FontFamily<T>where
T: ToTokens,
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl<S> Copy for FontFamily<S>where
S: Copy,
impl<S> Eq for FontFamily<S>where
S: Eq,
impl<S> StructuralPartialEq for FontFamily<S>
Auto Trait Implementations§
impl<S> Freeze for FontFamily<S>where
S: Freeze,
impl<S> RefUnwindSafe for FontFamily<S>where
S: RefUnwindSafe,
impl<S> Send for FontFamily<S>where
S: Send,
impl<S> Sync for FontFamily<S>where
S: Sync,
impl<S> Unpin for FontFamily<S>where
S: Unpin,
impl<S> UnwindSafe for FontFamily<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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,
Source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
Source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds error is returned which contains the unclamped color. Read more