Struct embedded_text::style::TextBoxStyle
source · pub struct TextBoxStyle<C, F, A>{
pub text_style: TextStyle<C, F>,
pub alignment: A,
}Expand description
Styling options of a TextBox.
Fields§
§text_style: TextStyle<C, F>Style properties for text.
alignment: AHorizontal alignment
Implementations§
source§impl<C, F, A> TextBoxStyle<C, F, A>
impl<C, F, A> TextBoxStyle<C, F, A>
Trait Implementations§
source§impl<C, F, A> Clone for TextBoxStyle<C, F, A>
impl<C, F, A> Clone for TextBoxStyle<C, F, A>
source§fn clone(&self) -> TextBoxStyle<C, F, A>
fn clone(&self) -> TextBoxStyle<C, F, A>
Returns a copy 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<C, F, A> Debug for TextBoxStyle<C, F, A>
impl<C, F, A> Debug for TextBoxStyle<C, F, A>
source§impl<C, F, A> Default for TextBoxStyle<C, F, A>
impl<C, F, A> Default for TextBoxStyle<C, F, A>
source§fn default() -> TextBoxStyle<C, F, A>
fn default() -> TextBoxStyle<C, F, A>
Returns the “default value” for a type. Read more
source§impl<C, F, A> Hash for TextBoxStyle<C, F, A>
impl<C, F, A> Hash for TextBoxStyle<C, F, A>
source§impl<C, F, A> Ord for TextBoxStyle<C, F, A>
impl<C, F, A> Ord for TextBoxStyle<C, F, A>
source§fn cmp(&self, other: &TextBoxStyle<C, F, A>) -> Ordering
fn cmp(&self, other: &TextBoxStyle<C, F, A>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<C, F, A> PartialEq for TextBoxStyle<C, F, A>
impl<C, F, A> PartialEq for TextBoxStyle<C, F, A>
source§fn eq(&self, other: &TextBoxStyle<C, F, A>) -> bool
fn eq(&self, other: &TextBoxStyle<C, F, A>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<C, F, A> PartialOrd for TextBoxStyle<C, F, A>
impl<C, F, A> PartialOrd for TextBoxStyle<C, F, A>
source§fn partial_cmp(&self, other: &TextBoxStyle<C, F, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &TextBoxStyle<C, F, A>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<C, F, A> Copy for TextBoxStyle<C, F, A>
impl<C, F, A> Eq for TextBoxStyle<C, F, A>
impl<C, F, A> StructuralPartialEq for TextBoxStyle<C, F, A>
Auto Trait Implementations§
impl<C, F, A> Freeze for TextBoxStyle<C, F, A>
impl<C, F, A> RefUnwindSafe for TextBoxStyle<C, F, A>
impl<C, F, A> Send for TextBoxStyle<C, F, A>
impl<C, F, A> Sync for TextBoxStyle<C, F, A>
impl<C, F, A> Unpin for TextBoxStyle<C, F, A>
impl<C, F, A> UnwindSafe for TextBoxStyle<C, F, A>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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)