GithubHelp home page GithubHelp logo

Graph should be visible about graphviz-rust HOT 7 CLOSED

besok avatar besok commented on May 29, 2024
Graph should be visible

from graphviz-rust.

Comments (7)

besok avatar besok commented on May 29, 2024

I agree, that the visibility of the graph is vital for handling complex cases.
But at the moment the structures are public and you can easily obtain the access to the fields like that:

          let mut g = graph!(id!("id");;
          
          match g {
            Graph::Graph { id, strict, stmts } => {}
            Graph::DiGraph { id, strict, stmts } => {
                match stmts.get(0){
                    None => {}
                    Some(Stmt::Node(node)) => {}
                    Some(stm) => {}
                  }
              }
          }

Or do you mean another visibility?

from graphviz-rust.

anon767 avatar anon767 commented on May 29, 2024

Hm correct me if I'm wrong, but shouldn't dot_structures be public here:
https://github.com/besok/graphviz-rust/blob/master/src/lib.rs#L81

pub use dot_structures::*;

Im not able to access it when using the crate :(

from graphviz-rust.

besok avatar besok commented on May 29, 2024

well. Perhaps, it can be useful but honestly, you should have an access to the structures if I don't misunderstand it.
Have you had a look at the following repo? https://github.com/besok/test-graphviz-rust.git

from graphviz-rust.

anon767 avatar anon767 commented on May 29, 2024

interesting. It works with graphviz-rust 0.1.2 but it does not work with graphviz-rust 0.2.0

from graphviz-rust.

besok avatar besok commented on May 29, 2024

Indeed. I will give a look in the evening.

from graphviz-rust.

besok avatar besok commented on May 29, 2024

it turned out there were no references to the underling crates in the main crate so therefore I added them evidenly
It should work properly in the new version.

from graphviz-rust.

anon767 avatar anon767 commented on May 29, 2024

perfect :) thanks

from graphviz-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.