pub struct JSTypedArray {
pub kind: TypedArrayKind,
pub buffer: Rc<RefCell<JSArrayBuffer>>,
pub byte_offset: usize,
pub length: usize,
}Fields§
§kind: TypedArrayKind§buffer: Rc<RefCell<JSArrayBuffer>>§byte_offset: usize§length: usizeImplementations§
Source§impl JSTypedArray
impl JSTypedArray
Sourcepub fn element_size(&self) -> usize
pub fn element_size(&self) -> usize
Get the size in bytes of each element in this TypedArray
Trait Implementations§
Source§impl Clone for JSTypedArray
impl Clone for JSTypedArray
Source§fn clone(&self) -> JSTypedArray
fn clone(&self) -> JSTypedArray
Returns a duplicate 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 Freeze for JSTypedArray
impl !RefUnwindSafe for JSTypedArray
impl !Send for JSTypedArray
impl !Sync for JSTypedArray
impl Unpin for JSTypedArray
impl !UnwindSafe for JSTypedArray
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