pub struct IocraftTextStyle {
pub color: Option<Color>,
pub weight: Weight,
pub italic: bool,
}
Fields§
§color: Option<Color>
§weight: Weight
§italic: bool
Implementations§
Source§impl IocraftTextStyle
impl IocraftTextStyle
pub fn merge_color(self, fallback: Option<Color>) -> Self
Trait Implementations§
Source§impl Clone for IocraftTextStyle
impl Clone for IocraftTextStyle
Source§fn clone(&self) -> IocraftTextStyle
fn clone(&self) -> IocraftTextStyle
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 Default for IocraftTextStyle
impl Default for IocraftTextStyle
Source§fn default() -> IocraftTextStyle
fn default() -> IocraftTextStyle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IocraftTextStyle
impl RefUnwindSafe for IocraftTextStyle
impl Send for IocraftTextStyle
impl Sync for IocraftTextStyle
impl Unpin for IocraftTextStyle
impl UnwindSafe for IocraftTextStyle
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