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

pub trait AsLiteral: DataType {
    type Term: TTerm;
    fn as_literal(&self) -> Self::Term;
}

A native datatype that converts to an RDF literal.

Associated Types

type Term: TTerm

The term type to which this native type can convert.

Loading content...

Required methods

fn as_literal(&self) -> Self::Term

Create an RDF literal, representing self.

Loading content...

Implementations on Foreign Types

impl AsLiteral for u8 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for u16 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for u32 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for u64 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for i8 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for i16 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for i32 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for i64 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for f32 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for f64 where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for bool where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl AsLiteral for String where
    Self: ToString
[src]

type Term = NativeLiteral<Self>

impl<'a> AsLiteral for &'a str[src]

type Term = NativeLiteral<&'a str, &'a str>

Loading content...

Implementors

Loading content...