[][src]Enum bloguen::ops::CenterOrder

pub enum CenterOrder {
    Forward,
    Backward,
}

A specifier of index centerpiece ordering.

Variants

Forward

Low-to-high

Backward

High-to-low

Methods

impl CenterOrder[src]

pub fn from(s: &str) -> Option<CenterOrder>[src]

Get a center order corresponding to the specified string.

The string repr of any variant is its name, case-insensitive.

Examples

assert_eq!(CenterOrder::from("forwaRd"), Some(CenterOrder::Forward));
assert_eq!(CenterOrder::from("BaCkWard"), Some(CenterOrder::Backward));

pub fn name(&self) -> &'static str[src]

Get a human-readable name of this center order.

This is re-from()able to self.

Examples

assert_eq!(CenterOrder::Forward.name(), "forward");
assert_eq!(CenterOrder::Backward.name(), "backward");

Trait Implementations

impl Eq for CenterOrder[src]

impl Default for CenterOrder[src]

impl Clone for CenterOrder[src]

impl PartialOrd<CenterOrder> for CenterOrder[src]

impl PartialEq<CenterOrder> for CenterOrder[src]

impl Ord for CenterOrder[src]

impl Copy for CenterOrder[src]

impl Hash for CenterOrder[src]

impl Debug for CenterOrder[src]

impl Display for CenterOrder[src]

impl FromStr for CenterOrder[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for CenterOrder[src]

impl<'de> Deserialize<'de> for CenterOrder[src]

Auto Trait Implementations

impl Send for CenterOrder

impl Unpin for CenterOrder

impl Sync for CenterOrder

impl UnwindSafe for CenterOrder

impl RefUnwindSafe for CenterOrder

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> ToString for T where
    T: Display + ?Sized
[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]

impl<T> RuleType for T where
    T: Copy + Eq + Ord + Hash + Debug
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]