Struct oxi_types::Array

source ·
pub struct Array(/* private fields */);
Expand description

A vector of Neovim Objects.

Implementations§

source§

impl Array

source

pub fn len(&self) -> usize

Returns the number of elements in the array.

source

pub fn is_empty(&self) -> bool

Returns true if the array contains no elements.

source

pub fn iter(&self) -> Iter<'_, Object>

Returns an iterator over the Objects of the array.

source

pub fn new() -> Self

Creates a new, empty Array.

source

pub fn non_owning(&self) -> NonOwning<'_, Self>

Returns a non-owning version of this Array.

Trait Implementations§

source§

impl Clone for Array

source§

fn clone(&self) -> Array

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Array

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Array

source§

fn default() -> Array

Returns the “default value” for a type. Read more
source§

impl<A: Into<Object>> From<(A,)> for Array

source§

fn from((A): (A,)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>> From<(A, B)> for Array

source§

fn from((A, B): (A, B)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>> From<(A, B, C)> for Array

source§

fn from((A, B, C): (A, B, C)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>> From<(A, B, C, D)> for Array

source§

fn from((A, B, C, D): (A, B, C, D)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>> From<(A, B, C, D, E)> for Array

source§

fn from((A, B, C, D, E): (A, B, C, D, E)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>> From<(A, B, C, D, E, F)> for Array

source§

fn from((A, B, C, D, E, F): (A, B, C, D, E, F)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>> From<(A, B, C, D, E, F, G)> for Array

source§

fn from((A, B, C, D, E, F, G): (A, B, C, D, E, F, G)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>> From<(A, B, C, D, E, F, G, H)> for Array

source§

fn from((A, B, C, D, E, F, G, H): (A, B, C, D, E, F, G, H)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>> From<(A, B, C, D, E, F, G, H, I)> for Array

source§

fn from((A, B, C, D, E, F, G, H, I): (A, B, C, D, E, F, G, H, I)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J)> for Array

source§

fn from((A, B, C, D, E, F, G, H, I, J): (A, B, C, D, E, F, G, H, I, J)) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K): (A, B, C, D, E, F, G, H, I, J, K) ) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>, L: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L): (A, B, C, D, E, F, G, H, I, J, K, L) ) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>, L: Into<Object>, M: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M): (A, B, C, D, E, F, G, H, I, J, K, L, M) ) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>, L: Into<Object>, M: Into<Object>, N: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N): (A, B, C, D, E, F, G, H, I, J, K, L, M, N) ) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>, L: Into<Object>, M: Into<Object>, N: Into<Object>, O: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O): (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) ) -> Self

Converts to this type from the input type.
source§

impl<A: Into<Object>, B: Into<Object>, C: Into<Object>, D: Into<Object>, E: Into<Object>, F: Into<Object>, G: Into<Object>, H: Into<Object>, I: Into<Object>, J: Into<Object>, K: Into<Object>, L: Into<Object>, M: Into<Object>, N: Into<Object>, O: Into<Object>, P: Into<Object>> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Array

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P): (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) ) -> Self

Converts to this type from the input type.
source§

impl From<Array> for Object

source§

fn from(array: Array) -> Self

Converts to this type from the input type.
source§

impl<T: Into<Object>> FromIterator<T> for Array

source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromObject for Array

source§

impl IntoIterator for Array

§

type Item = Object

The type of the elements being iterated over.
§

type IntoIter = ArrayIterator

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq for Array

source§

fn eq(&self, other: &Array) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Poppable for Array

source§

unsafe fn pop(lstate: *mut lua_State) -> Result<Self, Error>

Pops the value at the top of the stack.
source§

impl Pushable for Array

source§

unsafe fn push(self, lstate: *mut lua_State) -> Result<c_int, Error>

Pushes all its values on the Lua stack, returning the number of values that it pushed.
source§

impl StructuralPartialEq for Array

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToObject for T
where T: Into<Object>,

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.