pub struct SetFontFamiliesBuilder { /* private fields */ }Expand description
Builder for SetFontFamilies.
Implementations§
Source§impl SetFontFamiliesBuilder
impl SetFontFamiliesBuilder
Sourcepub fn font_families<VALUE: Into<FontFamilies>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn font_families<VALUE: Into<FontFamilies>>( &mut self, value: VALUE, ) -> &mut Self
Specifies font families to set. If a font family is not specified, it won’t be changed.
Sourcepub fn for_scripts<VALUE: Into<Vec<ScriptFontFamilies>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn for_scripts<VALUE: Into<Vec<ScriptFontFamilies>>>( &mut self, value: VALUE, ) -> &mut Self
Specifies font families to set for individual scripts.
Sourcepub fn build(&self) -> Result<SetFontFamilies, SetFontFamiliesBuilderError>
pub fn build(&self) -> Result<SetFontFamilies, SetFontFamiliesBuilderError>
Trait Implementations§
Source§impl Clone for SetFontFamiliesBuilder
impl Clone for SetFontFamiliesBuilder
Source§fn clone(&self) -> SetFontFamiliesBuilder
fn clone(&self) -> SetFontFamiliesBuilder
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 SetFontFamiliesBuilder
impl RefUnwindSafe for SetFontFamiliesBuilder
impl Send for SetFontFamiliesBuilder
impl Sync for SetFontFamiliesBuilder
impl Unpin for SetFontFamiliesBuilder
impl UnsafeUnpin for SetFontFamiliesBuilder
impl UnwindSafe for SetFontFamiliesBuilder
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