[][src]Enum nines::Scale

pub enum Scale {
    Stretch,
    Repeat,
    Round,
    Space,
}

How to scale images. Based roughly off of the CSS3 border-image-repeat property values.

Variants

Stretch

The border image is used exactly once, scaled as far up/down as necessary.

Repeat

The border image is used floor(image_size / element_edge_size) times. Additionally, a fractional image will be inserted in the middle.

Round

The border image is used max(1,round(image_size / element_edge_size)) times.

Space

The border image is used floor(image_size / element_edge_size) times. Gaps in the border are left, so this really only makes sense for dashed borders.

Trait Implementations

impl Clone for Scale[src]

impl Copy for Scale[src]

impl Default for Scale[src]

impl Eq for Scale[src]

impl Ord for Scale[src]

impl PartialEq<Scale> for Scale[src]

impl PartialOrd<Scale> for Scale[src]

impl Debug for Scale[src]

impl Hash for Scale[src]

impl StructuralPartialEq for Scale[src]

impl StructuralEq for Scale[src]

Auto Trait Implementations

impl Send for Scale

impl Sync for Scale

impl Unpin for Scale

impl UnwindSafe for Scale

impl RefUnwindSafe for Scale

Blanket Implementations

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 = !

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.

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

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

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