pub enum Subject {
Blank(BlankIdBuf),
Iri(IriBuf),
}Expand description
RDF Subject.
Either a blank node identifier or an IRI.
Variants
Blank(BlankIdBuf)
Blank node identifier.
Iri(IriBuf)
IRI.
Implementations
sourceimpl Subject
impl Subject
pub fn as_subject_ref(&self) -> SubjectRef<'_>
pub fn as_graph_label_ref(&self) -> GraphLabelRef<'_>
pub fn is_blank(&self) -> bool
pub fn is_iri(&self) -> bool
pub fn as_blank(&self) -> Option<&BlankId>
pub fn as_iri(&self) -> Option<Iri<'_>>
pub fn into_term(self) -> Term
pub fn as_term_ref(&self) -> TermRef<'_>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more