Struct e57::VisualReference
source · #[non_exhaustive]pub struct VisualReference {
pub blob: ImageBlob,
pub mask: Option<Blob>,
pub width: u32,
pub height: u32,
}Expand description
A visual reference image for preview and illustration purposes.
Such images cannot be mapped to points and are not projectable!
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.blob: ImageBlobReference to the binary image data.
mask: Option<Blob>Reference to a PNG image with a mask for non-rectangular images.
The mask is used to indicate which pixels in the image are valid. The mask dimension are the same as the image itself. It has non-zero-valued pixels at locations where the image is valid and zero-valued pixels at locations where it is invalid.
width: u32Width of the image in pixels.
height: u32Height of the image in pixels.
Trait Implementations§
source§impl Clone for VisualReference
impl Clone for VisualReference
source§fn clone(&self) -> VisualReference
fn clone(&self) -> VisualReference
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 moreAuto Trait Implementations§
impl RefUnwindSafe for VisualReference
impl Send for VisualReference
impl Sync for VisualReference
impl Unpin for VisualReference
impl UnwindSafe for VisualReference
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