[][src]Trait embedded_layout::Align

pub trait Align: Transform {
    fn align_to<D, H, V>(self, reference: D, horizontal: H, vertical: V) -> Self
    where
        D: Dimensions,
        H: HorizontalAlignment,
        V: VerticalAlignment
;
fn align_to_mut<D, H, V>(
        &mut self,
        reference: D,
        horizontal: H,
        vertical: V
    ) -> &mut Self
    where
        D: Dimensions,
        H: HorizontalAlignment,
        V: VerticalAlignment
; }

This trait enables alignment operations of embedded-graphics primitives

Required methods

fn align_to<D, H, V>(self, reference: D, horizontal: H, vertical: V) -> Self where
    D: Dimensions,
    H: HorizontalAlignment,
    V: VerticalAlignment

fn align_to_mut<D, H, V>(
    &mut self,
    reference: D,
    horizontal: H,
    vertical: V
) -> &mut Self where
    D: Dimensions,
    H: HorizontalAlignment,
    V: VerticalAlignment

Loading content...

Implementors

impl<T> Align for T where
    T: Dimensions + Transform
[src]

Loading content...