[][src]Enum json_ld::syntax::Type

pub enum Type<T> {
    Id,
    Json,
    None,
    Vocab,
    Ref(T),
}

Variants

Id
Json
None
Vocab
Ref(T)

Methods

impl<T> Type<T>[src]

pub fn into_ref(self) -> Result<T, Type<T>>[src]

impl<T: TermLike> Type<T>[src]

pub fn as_iri(&self) -> Option<Iri>[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl<T: AsJson> AsJson for Type<T>[src]

impl<T: Clone> Clone for Type<T>[src]

impl<T: Display> Display for Type<T>[src]

impl<T: Eq> Eq for Type<T>[src]

impl<T: Hash> Hash for Type<T>[src]

impl<T: PartialEq> PartialEq<Type<T>> for Type<T>[src]

impl<T> StructuralEq for Type<T>[src]

impl<T> StructuralPartialEq for Type<T>[src]

impl<T: TermLike> TermLike for Type<T>[src]

impl<T: Id> TryFrom<Term<T>> for Type<T>[src]

type Error = Term<T>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for Type<T> where
    T: RefUnwindSafe

impl<T> Send for Type<T> where
    T: Send

impl<T> Sync for Type<T> where
    T: Sync

impl<T> Unpin for Type<T> where
    T: Unpin

impl<T> UnwindSafe for Type<T> where
    T: UnwindSafe

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.