pub struct Font { /* private fields */ }
Implementations§
§impl Font
impl Font
pub fn new() -> Self
pub fn get_family(&mut self) -> &mut String
pub fn family(self, value: impl Into<String>) -> Font
pub fn get_line_height(&mut self) -> &mut NumberString
pub fn line_height(self, value: impl Into<NumberString>) -> Font
pub fn get_size(&mut self) -> &mut NumberString
pub fn size(self, value: impl Into<NumberString>) -> Font
pub fn get_style(&mut self) -> &mut NumberString
pub fn style(self, value: impl Into<NumberString>) -> Font
pub fn get_weight(&mut self) -> &mut NumberString
pub fn weight(self, value: impl Into<NumberString>) -> Font
Trait Implementations§
source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Font
impl Ord for Font
source§impl PartialOrd for Font
impl PartialOrd for Font
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)