pub struct View {
pub kind: ElementKind,
pub byte_offset: usize,
pub length: Option<usize>,
}Expand description
A typed array’s or a DataView’s window on its buffer.
Fields§
§kind: ElementKind§byte_offset: usize§length: Option<usize>The length in elements (bytes for a DataView); None tracks the
buffer’s length.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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