Struct rdftk_core::literal::Literal [−][src]
pub struct Literal { /* fields omitted */ }
Expand description
Implementations
impl Literal
[src]
impl Literal
[src]pub fn with_language(value: &str, language: &str) -> Self
[src]
pub fn with_language(value: &str, language: &str) -> Self
[src]Construct a new string literal value with the associated language.
pub fn chrono_duration(value: Duration) -> Self
[src]
pub fn chrono_duration(value: Duration) -> Self
[src]Construct a new DataType::Duration
value.
pub fn lexical_form(&self) -> &String
[src]
pub fn lexical_form(&self) -> &String
[src]Return the lexical form of this literal.
pub fn has_data_type(&self) -> bool
[src]
pub fn has_data_type(&self) -> bool
[src]Returns true
if this literal has a specified data type, else false
.
pub fn has_language(&self) -> bool
[src]
pub fn has_language(&self) -> bool
[src]Returns true
if this literal has a specified language, else false
.
pub fn as_object(&self) -> ObjectNodeRef
[src]
pub fn as_object(&self) -> ObjectNodeRef
[src]Create a new object node from this literal.
Trait Implementations
impl Eq for Literal
[src]
impl StructuralEq for Literal
[src]
impl StructuralPartialEq for Literal
[src]
Auto Trait Implementations
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more