[][src]Enum json_ld::Direction

pub enum Direction {
    Ltr,
    Rtl,
}

Internationalized string direction.

Specifies the direction used to read a string. This can be either left-to-right ("ltr") or right-to-left ("rtl").

Variants

Ltr

Left-to-right direction.

Rtl

Right-to-left direction.

Trait Implementations

impl AsJson for Direction[src]

fn as_json(&self) -> JsonValue[src]

Convert the direction into a JSON string. Either "rtl" or "ltr".

impl Clone for Direction[src]

impl Copy for Direction[src]

impl Debug for Direction[src]

impl Display for Direction[src]

impl Eq for Direction[src]

impl Hash for Direction[src]

impl Ord for Direction[src]

impl PartialEq<Direction> for Direction[src]

impl PartialOrd<Direction> for Direction[src]

impl StructuralEq for Direction[src]

impl StructuralPartialEq for Direction[src]

impl<'a> TryFrom<&'a str> for Direction[src]

type Error = &'a str

The type returned in the event of a conversion error.

fn try_from(name: &'a str) -> Result<Direction, &'a str>[src]

Convert the strings "rtl" and "ltr" into a Direction.

Auto Trait Implementations

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> ToOwned for T[src]

type Owned = T

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.