pub struct View<'a> { /* private fields */ }
Expand description
A view into a buffer generally representing a subset of the buffer.
Implementations§
source§impl<'a> View<'a>
impl<'a> View<'a>
sourcepub fn stride(&self) -> Option<usize>
pub fn stride(&self) -> Option<usize>
Returns the stride in bytes between vertex attributes or other interleavable
data. When None
, data is assumed to be tightly packed.
sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
pub fn extensions(&self) -> Option<&Map<String, Value>>
Returns extension data unknown to this crate version.
sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Queries extension data unknown to this crate version.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for View<'a>
impl<'a> Send for View<'a>
impl<'a> Sync for View<'a>
impl<'a> Unpin for View<'a>
impl<'a> UnwindSafe for View<'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