#[repr(u8)]
pub enum DataType {
Show 36 variants UnboundValue = 0, BlankNode = 1, IriReference = 2, Literal = 3, AnyUri = 4, String = 5, PlainLiteral = 6, Boolean = 7, DateTime = 8, DateTimeStamp = 9, Time = 10, Date = 11, YearMonth = 12, Year = 13, MonthDay = 14, Day = 15, Month = 16, Duration = 17, YearMonthDuration = 18, DayTimeDuration = 19, Double = 20, Float = 21, Decimal = 22, Integer = 23, NonNegativeInteger = 24, NonPositiveInteger = 25, NegativeInteger = 26, PositiveInteger = 27, Long = 28, Int = 29, Short = 30, Byte = 31, UnsignedLong = 32, UnsignedInt = 33, UnsignedShort = 34, UnsignedByte = 35,
}
Expand description

Variants§

§

UnboundValue = 0

INVALID_DATATYPE

§

BlankNode = 1

BLANK_NODE

§

IriReference = 2

IRI_REFERENCE

§

Literal = 3

RDFS_LITERAL

§

AnyUri = 4

XSD_ANY_URI

§

String = 5

XSD_STRING

§

PlainLiteral = 6

RDF_PLAIN_LITERAL

§

Boolean = 7

XSD_BOOLEAN

§

DateTime = 8

XSD_DATE_TIME

§

DateTimeStamp = 9

XSD_DATE_TIME_STAMP

§

Time = 10

XSD_TIME

§

Date = 11

XSD_DATE

§

YearMonth = 12

XSD_G_YEAR_MONTH

§

Year = 13

XSD_G_YEAR

§

MonthDay = 14

XSD_G_MONTH_DAY

§

Day = 15

XSD_G_DAY

§

Month = 16

XSD_G_MONTH

§

Duration = 17

XSD_DURATION

§

YearMonthDuration = 18

XSD_YEAR_MONTH_DURATION

§

DayTimeDuration = 19

XSD_DAY_TIME_DURATION

§

Double = 20

XSD_DOUBLE

§

Float = 21

XSD_FLOAT

§

Decimal = 22

XSD_DECIMAL

§

Integer = 23

XSD_INTEGER

§

NonNegativeInteger = 24

XSD_NON_NEGATIVE_INTEGER

§

NonPositiveInteger = 25

XSD_NON_POSITIVE_INTEGER

§

NegativeInteger = 26

XSD_NEGATIVE_INTEGER

§

PositiveInteger = 27

XSD_POSITIVE_INTEGER

§

Long = 28

XSD_LONG

§

Int = 29

XSD_INT

§

Short = 30

XSD_SHORT

§

Byte = 31

XSD_BYTE

§

UnsignedLong = 32

XSD_UNSIGNED_LONG

§

UnsignedInt = 33

XSD_UNSIGNED_INT

§

UnsignedShort = 34

XSD_UNSIGNED_SHORT

§

UnsignedByte = 35

XSD_UNSIGNED_BYTE

Implementations§

source§

impl DataType

source

pub fn from_datatype_id(data_type_id: u8) -> Result<DataType, RDFStoreError>

source

pub fn from_xsd_iri(iri: &str) -> Result<Self, RDFStoreError>

source

pub fn as_xsd_iri_str(&self) -> &'static str

source

pub fn is_string(&self) -> bool

source

pub fn is_iri(&self) -> bool

source

pub fn is_boolean(&self) -> bool

source

pub fn is_date(&self) -> bool

source

pub fn is_date_time(&self) -> bool

source

pub fn is_decimal(&self) -> bool

source

pub fn is_date_time_stamp(&self) -> bool

source

pub fn is_duration(&self) -> bool

source

pub fn is_signed_integer(&self) -> bool

source

pub fn is_unsigned_integer(&self) -> bool

source

pub fn is_integer(&self) -> bool

source

pub fn is_blank_node(&self) -> bool

Trait Implementations§

source§

impl Clone for DataType

source§

fn clone(&self) -> DataType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DataType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DataType

source§

fn default() -> Self

Choosing boolean here as the default type because the default for LexicalValueUnion is a boolean false.

source§

impl Hash for DataType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for DataType

source§

fn eq(&self, other: &DataType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u8> for DataType

§

type Error = TryFromPrimitiveError<DataType>

The type returned in the event of a conversion error.
source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for DataType

§

type Primitive = u8

§

type Error = TryFromPrimitiveError<DataType>

source§

const NAME: &'static str = "DataType"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for DataType

source§

impl Eq for DataType

source§

impl StructuralEq for DataType

source§

impl StructuralPartialEq for DataType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more