pub enum TextAlign {
Leading,
Center,
Trailing,
Justify,
}Expand description
Alinhamento do texto dentro do retângulo.
Variants§
Leading
Esquerda (ou topo).
Center
Trailing
Direita (ou base).
Justify
Justificado: as linhas quebradas ocupam a largura toda, com o espaço que sobra dividido entre as palavras; a última linha de cada parágrafo (e o texto de uma linha só) fica à esquerda. Na vertical, vale o topo.
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
Source§impl PropEnum for TextAlign
impl PropEnum for TextAlign
impl StructuralPartialEq for TextAlign
Auto Trait Implementations§
impl Forget for TextAlign
impl Freeze for TextAlign
impl Move for TextAlign
impl RefUnwindSafe for TextAlign
impl Send for TextAlign
impl Sync for TextAlign
impl Unpin for TextAlign
impl UnsafeUnpin for TextAlign
impl UnwindSafe for TextAlign
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