[][src]Trait sophia_term::literal::convert::DataType

pub trait DataType {
    fn iri() -> SimpleIri<'static>;

    fn datatype(&self) -> SimpleIri<'static> { ... }
}

A native datatype that maps to an RDF datatype.

Required methods

fn iri() -> SimpleIri<'static>

Static IRI referencing the datatype of this Rust-type.

Loading content...

Provided methods

fn datatype(&self) -> SimpleIri<'static>

Datatype of self.

This can be used for enums where each variant may has its own datatype.

Loading content...

Implementations on Foreign Types

impl DataType for u8[src]

impl DataType for u16[src]

impl DataType for u32[src]

impl DataType for u64[src]

impl DataType for i8[src]

impl DataType for i16[src]

impl DataType for i32[src]

impl DataType for i64[src]

impl DataType for f32[src]

impl DataType for f64[src]

impl DataType for bool[src]

impl DataType for String[src]

impl DataType for str[src]

impl<'_> DataType for &'_ str[src]

Loading content...

Implementors

Loading content...