[][src]Enum fit_text::Resize

pub enum Resize {
    NoLarger,
    Max,
    None,
}

A way of resizing text in a rectangle

Variants

NoLarger

Make the text no larger than its original font size, but still try to fit it in the rectangle

Max

Make the text as large as possible while still fitting in the rectangle

None

Do not resize the text

Trait Implementations

impl Eq for Resize[src]

impl Default for Resize[src]

impl Clone for Resize[src]

impl PartialOrd<Resize> for Resize[src]

impl Ord for Resize[src]

impl PartialEq<Resize> for Resize[src]

impl Copy for Resize[src]

impl Hash for Resize[src]

impl Debug for Resize[src]

Auto Trait Implementations

impl Send for Resize

impl Unpin for Resize

impl Sync for Resize

impl RefUnwindSafe for Resize

impl UnwindSafe for Resize

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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