pub struct TensorSpan {
pub abs_offset: u64,
pub len: u64,
}Expand description
A validated tensor byte span: an absolute file offset and a length that is known to fit inside the file it came from.
Fields§
§abs_offset: u64Absolute byte offset in the shard file where the tensor starts.
len: u64Tensor byte length.
Trait Implementations§
Source§impl Clone for TensorSpan
impl Clone for TensorSpan
Source§fn clone(&self) -> TensorSpan
fn clone(&self) -> TensorSpan
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 TensorSpan
impl Debug for TensorSpan
Source§impl PartialEq for TensorSpan
impl PartialEq for TensorSpan
impl Copy for TensorSpan
impl Eq for TensorSpan
impl StructuralPartialEq for TensorSpan
Auto Trait Implementations§
impl Freeze for TensorSpan
impl RefUnwindSafe for TensorSpan
impl Send for TensorSpan
impl Sync for TensorSpan
impl Unpin for TensorSpan
impl UnwindSafe for TensorSpan
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,
§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.