[][src]Struct emacs::Vector

pub struct Vector<'e>(pub Value<'e>);

A type that represents Lisp vectors. This is a newtype wrapper around Value that provides vector-specific methods.

Arguments to #[defun] having this type will be type-checked. This type checking can be omitted by manually wrapping a Value. Note that Emacs still does type checking when calling methods on the vector.

use emacs::{defun, Value, Vector, Result};

fn must_pass_vector(vector: Vector) -> Result<Vector> {

fn no_type_check(value: Value) -> Result<Vector> {


impl<'e> Vector<'e>[src]

pub fn get<T: FromLisp<'e>>(&self, i: usize) -> Result<T>[src]

pub fn set<T: IntoLisp<'e>>(&self, i: usize, value: T) -> Result<()>[src]

pub fn size(&self) -> Result<usize>[src]

Trait Implementations

impl<'a, 'e: 'a> FromLisp<'e> for Vector<'a>[src]

impl<'e> IntoLisp<'e> for Vector<'e>[src]

impl<'e> Clone for Vector<'e>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'e> Copy for Vector<'e>[src]

impl<'e> Debug for Vector<'e>[src]

Auto Trait Implementations

impl<'e> !Sync for Vector<'e>

impl<'e> !Send for Vector<'e>

impl<'e> Unpin for Vector<'e>

impl<'e> !RefUnwindSafe for Vector<'e>

impl<'e> !UnwindSafe for Vector<'e>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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.

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

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

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