pub struct TextAnchor { /* private fields */ }Expand description
A portable two-dimensional text anchor.
Implementations§
Source§impl TextAnchor
impl TextAnchor
pub const fn new(horizontal: HorizontalAnchor, vertical: VerticalAnchor) -> Self
pub const fn horizontal(self) -> HorizontalAnchor
pub const fn vertical(self) -> VerticalAnchor
pub const fn center() -> Self
Trait Implementations§
Source§impl Clone for TextAnchor
impl Clone for TextAnchor
impl Copy for TextAnchor
Source§impl Debug for TextAnchor
impl Debug for TextAnchor
Source§impl Default for TextAnchor
impl Default for TextAnchor
impl Eq for TextAnchor
Source§impl PartialEq for TextAnchor
impl PartialEq 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