pub struct Graphs<A> {
pub graphs: Vec<Graph<A>>,
}
Expand description
This is a thin wrapper over vectors of [Graph]
in order to read files with multiple dotgraph descriptions.
Fields§
§graphs: Vec<Graph<A>>
The set of graphs.
Implementations§
Source§impl Graphs<(String, String)>
impl Graphs<(String, String)>
Sourcepub fn from_file<'a, P>(p: P) -> Result<Self, GraphFromFileError<'a>>
pub fn from_file<'a, P>(p: P) -> Result<Self, GraphFromFileError<'a>>
Parses multiple graphs from a file, which path is given. Notice that when doing so, attributes are
of type (String, String)
, not the default (&'a str, &'a str)
, since we are reading and taking
ownership of the content of the file.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Graphs<A>
impl<A> RefUnwindSafe for Graphs<A>where
A: RefUnwindSafe,
impl<A> Send for Graphs<A>where
A: Send,
impl<A> Sync for Graphs<A>where
A: Sync,
impl<A> Unpin for Graphs<A>where
A: Unpin,
impl<A> UnwindSafe for Graphs<A>where
A: UnwindSafe,
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