pub struct SPIRVDepGraph { /* private fields */ }Implementations§
Source§impl SPIRVDepGraph
impl SPIRVDepGraph
pub fn new() -> Self
pub fn add_node(&mut self, id: u32)
pub fn add_dep(&mut self, dep: u32, dependent: u32)
pub fn dependents_of(&self, node: u32) -> Vec<u32>
pub fn dependencies_of(&self, node: u32) -> Vec<u32>
pub fn topological_sort(&self) -> Vec<u32>
pub fn has_cycle(&self) -> bool
Trait Implementations§
Source§impl Clone for SPIRVDepGraph
impl Clone for SPIRVDepGraph
Source§fn clone(&self) -> SPIRVDepGraph
fn clone(&self) -> SPIRVDepGraph
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 moreAuto Trait Implementations§
impl Freeze for SPIRVDepGraph
impl RefUnwindSafe for SPIRVDepGraph
impl Send for SPIRVDepGraph
impl Sync for SPIRVDepGraph
impl Unpin for SPIRVDepGraph
impl UnsafeUnpin for SPIRVDepGraph
impl UnwindSafe for SPIRVDepGraph
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