[−][src]Struct smpli::Array
Methods
impl Array
[src]
pub fn new() -> Array
[src]
pub fn new_init<T: IntoIterator<Item = Value>>(iter: T) -> Array
[src]
pub fn with_capacity(capacity: usize) -> Array
[src]
pub fn capacity(&self) -> usize
[src]
pub fn reserve(&mut self, additional: usize)
[src]
pub fn reserve_exact(&mut self, additional: usize)
[src]
pub fn shrink_to_fit(&mut self)
[src]
pub fn into_boxed_slice(self) -> Box<[ReferableValue]>
[src]
pub fn truncate(&mut self, len: usize)
[src]
pub fn as_slice(&self) -> &[ReferableValue]
[src]
pub fn as_mut_slice(&mut self) -> &mut [ReferableValue]
[src]
pub fn insert(&mut self, index: usize, value: Value)
[src]
pub fn remove(&mut self, index: usize) -> ReferableValue
[src]
pub fn push(&mut self, value: Value)
[src]
pub fn pop(&mut self) -> Option<ReferableValue>
[src]
pub fn append(&mut self, other: &mut Array)
[src]
pub fn clear(&mut self)
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
Trait Implementations
impl Debug for Array
[src]
impl Deref for Array
[src]
type Target = [ReferableValue]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl FromIterator<ReferableValue> for Array
[src]
fn from_iter<I: IntoIterator<Item = ReferableValue>>(iter: I) -> Self
[src]
impl FromIterator<Value> for Array
[src]
fn from_iter<I: IntoIterator<Item = Value>>(iter: I) -> Self
[src]
impl IntoIterator for Array
[src]
type Item = ReferableValue
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a Array
[src]
type Item = &'a ReferableValue
The type of the elements being iterated over.
type IntoIter = Iter<'a, ReferableValue>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a mut Array
[src]
type Item = &'a mut ReferableValue
The type of the elements being iterated over.
type IntoIter = IterMut<'a, ReferableValue>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Array> for Array
[src]
impl StructuralPartialEq for Array
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Array
impl !Send for Array
impl !Sync for Array
impl Unpin for Array
impl !UnwindSafe for Array
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,