pub struct TextStyle { /* private fields */ }
Implementations
sourceimpl TextStyle
impl TextStyle
pub fn color(self, val: &str) -> TextStyle
pub fn font(self, val: f32) -> TextStyle
pub fn custom_font(self, val: &str) -> TextStyle
pub fn stroke(self, val: &str) -> TextStyle
pub fn stroke_width(self, val: f32) -> TextStyle
pub fn background_color(self, val: &str) -> TextStyle
pub fn background_padding(self, val: f32) -> TextStyle
pub fn align(self, val: TextAlign) -> TextStyle
pub fn opacity(self, val: f32) -> TextStyle
Trait Implementations
impl JsSerialize for TextStyle
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more