Struct interpreter::object::builtins::Array
source · #[repr(C)]pub struct Array<T> { /* private fields */ }
Implementations§
source§impl<T> Array<T>
impl<T> Array<T>
pub fn elements_offset() -> usize
pub fn element_scale() -> usize
pub fn new(object: Object) -> Self
pub fn slice(&self) -> &[T]
pub fn data_ptr(&self) -> *const T
pub fn slice_mut(&mut self) -> &mut [T]
pub fn push(&mut self, value: T)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Array<T>
impl<T> !Send for Array<T>
impl<T> !Sync for Array<T>
impl<T> Unpin for Array<T>where T: Unpin,
impl<T> !UnwindSafe for Array<T>
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