pub enum VisualRDFEdge {
Iri {
label: String,
url: String,
},
Reifies,
}Expand description
Represents an edge in a visual RDF graph.
Edges connect nodes and can represent RDF predicates or special relationships like reification.
Variants§
Iri
An edge representing an IRI predicate with a label and URL.
Reifies
A special edge representing reification (rdf:reifies).
Implementations§
Source§impl VisualRDFEdge
impl VisualRDFEdge
Sourcepub fn from_iri<R: Rdf>(rdf: &R, iri: &R::IRI) -> Self
pub fn from_iri<R: Rdf>(rdf: &R, iri: &R::IRI) -> Self
Creates a VisualRDFEdge from an RDF IRI.
If the IRI is the special rdf:reifies predicate, returns Reifies.
Otherwise, creates an Iri variant with qualified label and URL.
§Arguments
rdf- The RDF context for IRI qualificationiri- The IRI to convert
§Returns
VisualRDFEdge- The corresponding visual edge
Sourcepub fn as_plantuml_link(&self) -> String
pub fn as_plantuml_link(&self) -> String
Trait Implementations§
Source§impl Clone for VisualRDFEdge
impl Clone for VisualRDFEdge
Source§fn clone(&self) -> VisualRDFEdge
fn clone(&self) -> VisualRDFEdge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisualRDFEdge
impl Debug for VisualRDFEdge
Source§impl Display for VisualRDFEdge
impl Display for VisualRDFEdge
Source§impl Hash for VisualRDFEdge
impl Hash for VisualRDFEdge
Source§impl PartialEq for VisualRDFEdge
impl PartialEq for VisualRDFEdge
impl Eq for VisualRDFEdge
impl StructuralPartialEq for VisualRDFEdge
Auto Trait Implementations§
impl Freeze for VisualRDFEdge
impl RefUnwindSafe for VisualRDFEdge
impl Send for VisualRDFEdge
impl Sync for VisualRDFEdge
impl Unpin for VisualRDFEdge
impl UnsafeUnpin for VisualRDFEdge
impl UnwindSafe for VisualRDFEdge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.