pub struct DataSpan {
pub object: ObjectId,
pub offset: u64,
pub length: u64,
}Expand description
A byte range within one object; offsets are independent of tensor encoding.
Fields§
§object: ObjectIdObject containing this range, relative to its byte source.
offset: u64Byte offset from the beginning of the object.
length: u64Length of the range in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataSpan
impl<'de> Deserialize<'de> for DataSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DataSpan
impl RefUnwindSafe for DataSpan
impl Send for DataSpan
impl Sync for DataSpan
impl Unpin for DataSpan
impl UnsafeUnpin for DataSpan
impl UnwindSafe for DataSpan
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