pub struct CopyCommand {
pub src_id: u64,
pub dst_id: u64,
pub src_region: BufferRegion,
pub dst_offset: u64,
pub direction: CopyDirection,
}Expand description
A single buffer copy command.
Fields§
§src_id: u64Source buffer identifier.
dst_id: u64Destination buffer identifier.
src_region: BufferRegionSource region.
dst_offset: u64Destination offset.
direction: CopyDirectionDirection of the copy.
Implementations§
Source§impl CopyCommand
impl CopyCommand
Sourcepub fn new(
src_id: u64,
dst_id: u64,
src_region: BufferRegion,
dst_offset: u64,
direction: CopyDirection,
) -> Self
pub fn new( src_id: u64, dst_id: u64, src_region: BufferRegion, dst_offset: u64, direction: CopyDirection, ) -> Self
Create a new copy command.
Sourcepub fn dst_region(&self) -> BufferRegion
pub fn dst_region(&self) -> BufferRegion
The destination region implied by this copy.
Sourcepub fn aliases_with(&self, other: &CopyCommand) -> bool
pub fn aliases_with(&self, other: &CopyCommand) -> bool
Check if this copy would alias with another (read-write hazard).
Trait Implementations§
Source§impl Clone for CopyCommand
impl Clone for CopyCommand
Source§fn clone(&self) -> CopyCommand
fn clone(&self) -> CopyCommand
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 moreSource§impl Debug for CopyCommand
impl Debug for CopyCommand
Source§impl PartialEq for CopyCommand
impl PartialEq for CopyCommand
impl Eq for CopyCommand
impl StructuralPartialEq for CopyCommand
Auto Trait Implementations§
impl Freeze for CopyCommand
impl RefUnwindSafe for CopyCommand
impl Send for CopyCommand
impl Sync for CopyCommand
impl Unpin for CopyCommand
impl UnsafeUnpin for CopyCommand
impl UnwindSafe for CopyCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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