pub struct Array { /* private fields */ }Implementations§
Source§impl Array
impl Array
pub fn type_info() -> (i32, fn(i64) -> Option<Box<dyn IObject>>)
pub fn get_count(&self) -> i64
pub fn is_empty(&self) -> bool
pub fn add_range(&mut self, other: &Array)
pub fn remove_from(&mut self, other: &Array)
pub fn clear(&mut self)
pub fn reverse(&mut self)
pub fn shrink(&mut self)
pub fn swap(&mut self, index_a: i32, index_b: i32)
pub fn remove_at(&mut self, index: i32) -> bool
pub fn fast_remove_at(&mut self, index: i32) -> bool
pub fn new() -> Array
Source§impl Array
impl Array
pub fn set<'a, T>(&mut self, index: i32, v: T)where
T: IntoValue<'a>,
pub fn get(&self, index: i32) -> Option<Value>
pub fn first(&self) -> Option<Value>
pub fn last(&self) -> Option<Value>
pub fn random_object(&self) -> Option<Value>
pub fn add<'a, T>(&mut self, v: T)where
T: IntoValue<'a>,
pub fn insert<'a, T>(&mut self, index: i32, v: T)where
T: IntoValue<'a>,
pub fn contains<'a, T>(&self, v: T) -> boolwhere
T: IntoValue<'a>,
pub fn index<'a, T>(&self, v: T) -> i32where
T: IntoValue<'a>,
pub fn remove_last(&mut self) -> Option<Value>
pub fn fast_remove<'a, T>(&mut self, v: T) -> boolwhere
T: IntoValue<'a>,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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