[][src]Enum kas::Align

pub enum Align {
    Default,
    TL,
    Centre,
    BR,
    Stretch,
}

Alignment of contents

Note that alignment information is often passed as a (horiz, vert) pair.

Variants

Default

Default alignment

This is context dependent. For example, for Left-To-Right text it means TL; for things which want to stretch it may mean Stretch.

TL

Align to top or left

Centre

Align to centre

BR

Align to bottom or right

Stretch

Stretch to fill space

For text, this is known as "justified alignment".

Trait Implementations

impl Clone for Align[src]

impl Copy for Align[src]

impl Debug for Align[src]

impl Default for Align[src]

impl Eq for Align[src]

impl Hash for Align[src]

impl Ord for Align[src]

impl PartialEq<Align> for Align[src]

impl PartialOrd<Align> for Align[src]

impl StructuralEq for Align[src]

impl StructuralPartialEq for Align[src]

Auto Trait Implementations

impl RefUnwindSafe for Align

impl Send for Align

impl Sync for Align

impl Unpin for Align

impl UnwindSafe for Align

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.