#[non_exhaustive]pub struct Blob {
pub offset: u64,
pub length: u64,
}Expand description
Describes a binary data blob stored inside an E57 file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: u64Physical file offset of the binary blob section in the E57 file.
length: u64The logical size of the associated binary blob in bytes.
Implementations§
source§impl Blob
impl Blob
sourcepub fn new(offset: u64, length: u64) -> Self
pub fn new(offset: u64, length: u64) -> Self
Creates a blob instance manually from offset and length. WARNING: This constructor is NOT required for standard E57 functionality! In normal cases, like when reading images, the library will provide all Blob instances. This is only needed for use cases with E57 extensions to read custom binary data. In this case the offset and length values must be extracted manually from the XML data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blob
impl RefUnwindSafe for Blob
impl Send for Blob
impl Sync for Blob
impl Unpin for Blob
impl UnwindSafe for Blob
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)