Struct ocl_extras::command_graph::Command
source · pub struct Command { /* private fields */ }
Implementations
sourceimpl Command
impl Command
pub fn new(details: CommandDetails) -> Command
sourcepub fn preceding_writers(
&self,
cmds: &HashMap<usize, RwCmdIdxs>
) -> BTreeSet<usize>
pub fn preceding_writers(
&self,
cmds: &HashMap<usize, RwCmdIdxs>
) -> BTreeSet<usize>
Returns a list of commands which both precede a command and which write to a block of memory which is read from by that command.
sourcepub fn following_readers(
&self,
cmds: &HashMap<usize, RwCmdIdxs>
) -> BTreeSet<usize>
pub fn following_readers(
&self,
cmds: &HashMap<usize, RwCmdIdxs>
) -> BTreeSet<usize>
Returns a list of commands which both follow a command and which read from a block of memory which is written to by that command.
pub fn details(&self) -> &CommandDetails
Auto Trait Implementations
impl !RefUnwindSafe for Command
impl Send for Command
impl !Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more