pub struct FontFamiliesBuilder { /* private fields */ }Expand description
Builder for FontFamilies.
Implementations§
Source§impl FontFamiliesBuilder
impl FontFamiliesBuilder
Sourcepub fn standard<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn standard<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The standard font-family.
Sourcepub fn sans_serif<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sans_serif<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The sansSerif font-family.
Sourcepub fn cursive<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cursive<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The cursive font-family.
Sourcepub fn fantasy<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn fantasy<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The fantasy font-family.
Sourcepub fn build(&self) -> Result<FontFamilies, FontFamiliesBuilderError>
pub fn build(&self) -> Result<FontFamilies, FontFamiliesBuilderError>
Trait Implementations§
Source§impl Clone for FontFamiliesBuilder
impl Clone for FontFamiliesBuilder
Source§fn clone(&self) -> FontFamiliesBuilder
fn clone(&self) -> FontFamiliesBuilder
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 moreAuto Trait Implementations§
impl Freeze for FontFamiliesBuilder
impl RefUnwindSafe for FontFamiliesBuilder
impl Send for FontFamiliesBuilder
impl Sync for FontFamiliesBuilder
impl Unpin for FontFamiliesBuilder
impl UnsafeUnpin for FontFamiliesBuilder
impl UnwindSafe for FontFamiliesBuilder
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