Struct debris_common::graph::GraphMatrix
source · pub struct GraphMatrix<T = ()> {
data: Box<[Option<T>]>,
size: usize,
}
Expand description
A directed graph backed by a matrix.
T
is the type of weights and defaults to ()
.
Since this struct is only intended to be used for the specific use case
of control flow analysis a lot of functionality, like resizing, is not implemented.
Fields§
§data: Box<[Option<T>]>
§size: usize
Implementations§
source§impl<T> GraphMatrix<T>
impl<T> GraphMatrix<T>
sourcepub fn new(size: usize) -> Self
pub fn new(size: usize) -> Self
Creates a new GraphMatrix
with a size
rows and size
columns.
Trait Implementations§
source§impl<T: Debug> Debug for GraphMatrix<T>
impl<T: Debug> Debug for GraphMatrix<T>
source§impl<T> Index<usize> for GraphMatrix<T>
impl<T> Index<usize> for GraphMatrix<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GraphMatrix<T>where T: RefUnwindSafe,
impl<T> Send for GraphMatrix<T>where T: Send,
impl<T> Sync for GraphMatrix<T>where T: Sync,
impl<T> Unpin for GraphMatrix<T>
impl<T> UnwindSafe for GraphMatrix<T>where T: 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