pub struct ExtensionsView<'a> {
pub normals_oct: Option<&'a [u8]>,
pub water_mask: Option<WaterMaskView<'a>>,
pub metadata_json: Option<&'a str>,
}Expand description
Extensions viewed as borrowed slices into the source buffer.
Fields§
§normals_oct: Option<&'a [u8]>Oct-encoded normals — 2 bytes per vertex. Use oct_decode_normal
or iter_oct_normals to decode.
water_mask: Option<WaterMaskView<'a>>Water mask.
metadata_json: Option<&'a str>Raw metadata JSON. Use TileMetadata::from a serde_json::from_str
to materialise.
Implementations§
Source§impl<'a> ExtensionsView<'a>
impl<'a> ExtensionsView<'a>
Sourcepub fn to_owned(&self) -> DecodeResult<DecodedExtensions>
pub fn to_owned(&self) -> DecodeResult<DecodedExtensions>
Materialise into the owned DecodedExtensions form.
Trait Implementations§
Source§impl<'a> Clone for ExtensionsView<'a>
impl<'a> Clone for ExtensionsView<'a>
Source§fn clone(&self) -> ExtensionsView<'a>
fn clone(&self) -> ExtensionsView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExtensionsView<'a>
impl<'a> Debug for ExtensionsView<'a>
Source§impl<'a> Default for ExtensionsView<'a>
impl<'a> Default for ExtensionsView<'a>
Source§fn default() -> ExtensionsView<'a>
fn default() -> ExtensionsView<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ExtensionsView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtensionsView<'a>
impl<'a> RefUnwindSafe for ExtensionsView<'a>
impl<'a> Send for ExtensionsView<'a>
impl<'a> Sync for ExtensionsView<'a>
impl<'a> Unpin for ExtensionsView<'a>
impl<'a> UnsafeUnpin for ExtensionsView<'a>
impl<'a> UnwindSafe for ExtensionsView<'a>
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