[][src]Struct nson::array::Array

pub struct Array { /* fields omitted */ }

Implementations

impl Array[src]

pub fn new() -> Array[src]

pub fn with_capacity(capacity: usize) -> Array[src]

pub fn from_vec(vec: Vec<Value>) -> Array[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn push(&mut self, value: impl Into<Value>)[src]

pub fn push_value(&mut self, value: Value)[src]

pub fn inner(&self) -> &Vec<Value>[src]

pub fn as_mut_inner(&mut self) -> &mut Vec<Value>[src]

pub fn into_inner(self) -> Vec<Value>[src]

pub fn iter(&self) -> Iter<Value>[src]

pub fn iter_mut(&mut self) -> IterMut<Value>[src]

pub fn encode(&self, writer: &mut impl Write) -> EncodeResult<()>[src]

pub fn decode(reader: &mut impl Read) -> DecodeResult<Array>[src]

pub fn to_vec(&self) -> EncodeResult<Vec<u8>>[src]

pub fn from_slice(slice: &[u8]) -> DecodeResult<Array>[src]

pub fn bytes_size(&self) -> usize[src]

Trait Implementations

impl AsRef<Vec<Value>> for Array[src]

impl Clone for Array[src]

impl Debug for Array[src]

impl Default for Array[src]

impl Deref for Array[src]

type Target = Vec<Value>

The resulting type after dereferencing.

impl DerefMut for Array[src]

impl Eq for Array[src]

impl From<Array> for Value[src]

impl<'_> From<Vec<&'_ String>> for Array[src]

impl<'_> From<Vec<&'_ str>> for Array[src]

impl From<Vec<Array>> for Array[src]

impl From<Vec<Message>> for Array[src]

impl From<Vec<MessageId>> for Array[src]

impl From<Vec<String>> for Array[src]

impl From<Vec<Vec<Vec<u8>>>> for Array[src]

impl From<Vec<Vec<u8>>> for Array[src]

impl From<Vec<bool>> for Array[src]

impl From<Vec<f32>> for Array[src]

impl From<Vec<f64>> for Array[src]

impl From<Vec<i32>> for Array[src]

impl From<Vec<i64>> for Array[src]

impl From<Vec<u32>> for Array[src]

impl From<Vec<u64>> for Array[src]

impl FromIterator<Value> for Array[src]

impl IntoIterator for Array[src]

type Item = Value

The type of the elements being iterated over.

type IntoIter = IntoIter<Value>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a Array[src]

type Item = &'a Value

The type of the elements being iterated over.

type IntoIter = Iter<'a, Value>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a mut Array[src]

type Item = &'a mut Value

The type of the elements being iterated over.

type IntoIter = IterMut<'a, Value>

Which kind of iterator are we turning this into?

impl PartialEq<Array> for Array[src]

impl StructuralEq 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,