#[repr(C)]pub struct ObjectSource {
pub id: ObjID,
pub src_start: u64,
pub dest_start: u64,
pub len: usize,
}
Expand description
Specifications for an object-copy from a source object. The specified ranges are
source:[src_start, src_start + len) copied to
Fields§
§id: ObjID
The ID of the source object, or zero for filling destination with zero.
src_start: u64
The offset into the source object to start the copy. If id is zero, this field is reserved for future use.
dest_start: u64
The offset into the dest object to start the copy or zero.
len: usize
The length of the copy or zero.
Implementations§
Trait Implementations§
source§impl Clone for ObjectSource
impl Clone for ObjectSource
source§fn clone(&self) -> ObjectSource
fn clone(&self) -> ObjectSource
Returns a copy 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 ObjectSource
impl Debug for ObjectSource
source§impl Default for ObjectSource
impl Default for ObjectSource
source§fn default() -> ObjectSource
fn default() -> ObjectSource
Returns the “default value” for a type. Read more
source§impl Ord for ObjectSource
impl Ord for ObjectSource
source§fn cmp(&self, other: &ObjectSource) -> Ordering
fn cmp(&self, other: &ObjectSource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ObjectSource
impl PartialEq for ObjectSource
source§impl PartialOrd for ObjectSource
impl PartialOrd for ObjectSource
impl Copy for ObjectSource
impl Eq for ObjectSource
impl StructuralPartialEq for ObjectSource
Auto Trait Implementations§
impl Freeze for ObjectSource
impl ObjSafe for ObjectSource
impl RefUnwindSafe for ObjectSource
impl Send for ObjectSource
impl Sync for ObjectSource
impl Unpin for ObjectSource
impl UnwindSafe for ObjectSource
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.