[][src]Enum ldpl::LDPLType

pub enum LDPLType {
    Number,
    Text,
    List(Box<LDPLType>),
    Map(Box<LDPLType>),
}

Variants

Number
Text
List(Box<LDPLType>)

Methods

impl LDPLType[src]

pub fn from(name: &str) -> Self[src]

Create an LDPLType from an ident like NUMBER or text list.

pub fn is_number(&self) -> bool[src]

pub fn is_text(&self) -> bool[src]

pub fn is_list(&self) -> bool[src]

pub fn is_map(&self) -> bool[src]

pub fn is_collection(&self) -> bool[src]

pub fn is_text_collection(&self) -> bool[src]

pub fn is_number_collection(&self) -> bool[src]

Trait Implementations

impl Clone for LDPLType[src]

impl Debug for LDPLType[src]

impl PartialEq<LDPLType> for LDPLType[src]

impl StructuralPartialEq for LDPLType[src]

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, 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.