pub struct FontStyle { /* private fields */ }Implementations§
Source§impl FontStyle
impl FontStyle
pub fn get_color(&self) -> &str
pub fn get_family(&self) -> &str
pub fn get_opacity(&self) -> f32
pub fn get_size(&self) -> f32
pub fn attrs(&self) -> impl DoubleEndedIterator<Item = (&String, &String)>
pub fn color<S: Display>(self, color: S) -> Self
pub fn family<S: Display>(self, family: S) -> Self
pub fn opacity<I: Into<f64>>(self, new_opacity: I) -> Self
pub fn size<I: Into<f64>>(self, new_size: I) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FontStyle
impl<'de> Deserialize<'de> for FontStyle
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
Auto Trait Implementations§
impl Freeze for FontStyle
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnwindSafe for FontStyle
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