pub enum TextAnchor {
Start,
Middle,
End,
}Expand description
Text anchor alignment.
Variants§
Start
Align to the start (left for LTR text).
Middle
Center alignment.
End
Align to the end (right for LTR text).
Trait Implementations§
Source§impl Clone for TextAnchor
impl Clone for TextAnchor
Source§fn clone(&self) -> TextAnchor
fn clone(&self) -> TextAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextAnchor
impl Debug for TextAnchor
Source§impl Default for TextAnchor
impl Default for TextAnchor
Source§fn default() -> TextAnchor
fn default() -> TextAnchor
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextAnchor
impl PartialEq for TextAnchor
Source§fn eq(&self, other: &TextAnchor) -> bool
fn eq(&self, other: &TextAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextAnchor
impl Eq for TextAnchor
impl StructuralPartialEq for TextAnchor
Auto Trait Implementations§
impl Freeze for TextAnchor
impl RefUnwindSafe for TextAnchor
impl Send for TextAnchor
impl Sync for TextAnchor
impl Unpin for TextAnchor
impl UnsafeUnpin for TextAnchor
impl UnwindSafe for TextAnchor
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