pub enum GraphName {
BNode(BlankNode),
Iri(Iri),
}Expand description
This type denotes the identifier for a graph in a data set; a graph name MUST be either an Iri or a blank node.
Variants§
Implementations§
Source§impl GraphName
impl GraphName
Sourcepub fn blank() -> Self
pub fn blank() -> Self
Construct a new graph name, as a blank node with a randomly assigned name.
Sourcepub fn blank_named<S>(name: S) -> Result<Self, Error>
pub fn blank_named<S>(name: S) -> Result<Self, Error>
Construct a new graph name, as a blank node with the specified name.
Trait Implementations§
impl Eq for GraphName
Source§impl From<SubjectNode> for GraphName
impl From<SubjectNode> for GraphName
Source§fn from(value: SubjectNode) -> Self
fn from(value: SubjectNode) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for GraphName
Auto Trait Implementations§
impl Freeze for GraphName
impl RefUnwindSafe for GraphName
impl Send for GraphName
impl Sync for GraphName
impl Unpin for GraphName
impl UnsafeUnpin for GraphName
impl UnwindSafe for GraphName
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