Union rdf_store_rs::literal::value::LiteralValue
source · pub union LiteralValue {
pub iri: ManuallyDrop<IriBuf>,
pub string: ManuallyDrop<String>,
pub boolean: bool,
pub unsigned_integer: u64,
pub signed_integer: i64,
pub date: ManuallyDrop<NaiveDate>,
pub date_time: DateTime<Utc>,
pub blank_node: ManuallyDrop<String>,
}
Fields§
§iri: ManuallyDrop<IriBuf>
§string: ManuallyDrop<String>
§boolean: bool
§unsigned_integer: u64
§signed_integer: i64
§date: ManuallyDrop<NaiveDate>
§date_time: DateTime<Utc>
§blank_node: ManuallyDrop<String>
Implementations§
source§impl LiteralValue
impl LiteralValue
pub fn new_string(str: &str) -> Self
pub fn new_iri(iri: &Iri<'_>) -> Self
pub fn new_boolean(boolean: bool) -> Self
pub fn new_unsigned_integer(unsigned_integer: u64) -> Self
pub fn new_signed_integer(signed_integer: i64) -> Self
pub fn new_date(date: NaiveDate) -> Self
pub fn new_date_time(date_time: DateTime<Utc>) -> Self
pub fn new_blank_node(blank_node: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LiteralValue
impl Send for LiteralValue
impl Sync for LiteralValue
impl Unpin for LiteralValue
impl UnwindSafe for LiteralValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more