pub struct DotGenerator;Implementations§
Source§impl DotGenerator
impl DotGenerator
pub fn new() -> Self
Sourcepub fn generate_dot(
&self,
graph: &KnowledgeGraph,
) -> Result<String, KnowledgeGraphError>
pub fn generate_dot( &self, graph: &KnowledgeGraph, ) -> Result<String, KnowledgeGraphError>
Generate DOT with default options.
§Errors
Returns a KnowledgeGraphError if DOT generation fails for any reason.
Sourcepub fn generate_dot_with_options(
&self,
graph: &KnowledgeGraph,
opts: DotOptions,
) -> Result<String, KnowledgeGraphError>
pub fn generate_dot_with_options( &self, graph: &KnowledgeGraph, opts: DotOptions, ) -> Result<String, KnowledgeGraphError>
Generate DOT with the given opts.
§Errors
Returns a KnowledgeGraphError if DOT generation fails for any reason.
Trait Implementations§
Source§impl Debug for DotGenerator
impl Debug for DotGenerator
Source§impl Default for DotGenerator
impl Default for DotGenerator
Source§fn default() -> DotGenerator
fn default() -> DotGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DotGenerator
impl RefUnwindSafe for DotGenerator
impl Send for DotGenerator
impl Sync for DotGenerator
impl Unpin for DotGenerator
impl UnwindSafe for DotGenerator
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more