Skip to main content

VecInner

Trait VecInner 

Source
#[doc(hidden)]
pub trait VecInner: Sized { const VEC_NATIVE_BORROW: Option<NativeBorrow>; const VEC_CHARACTER_ONLY: bool; // Required methods fn vec_try_from_sexp( sexp: SEXP, check: &ElementCheck<'_>, ) -> Result<Vec<Self>, SexpError>; unsafe fn vec_try_from_sexp_unchecked( sexp: SEXP, check: &ElementCheck<'_>, ) -> Result<Vec<Self>, SexpError>; }
Expand description

Vec<Self>: TryFromSexp with an error that converts into SexpError, with Self as the bound’s self type.

Plumbing for the Vec<T> blanket below: see the module docs (#1682).

Required Associated Constants§

Source

const VEC_NATIVE_BORROW: Option<NativeBorrow>

<Vec<Self> as TryFromSexp>::NATIVE_BORROW.

Source

const VEC_CHARACTER_ONLY: bool

<Vec<Self> as TryFromSexp>::CHARACTER_ONLY.

Required Methods§

Source

fn vec_try_from_sexp( sexp: SEXP, check: &ElementCheck<'_>, ) -> Result<Vec<Self>, SexpError>

<Vec<Self> as TryFromSexp>::__mx_try_from_sexp_with_check: the vector, with check run where Vec<Self> keeps an element’s class.

Source

unsafe fn vec_try_from_sexp_unchecked( sexp: SEXP, check: &ElementCheck<'_>, ) -> Result<Vec<Self>, SexpError>

<Vec<Self> as TryFromSexp>::__mx_try_from_sexp_unchecked_with_check.

§Safety

As TryFromSexp::try_from_sexp_unchecked.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I> VecInner for I

Source§

const VEC_NATIVE_BORROW: Option<NativeBorrow> = <Vec<I> as TryFromSexp>::NATIVE_BORROW

Source§

const VEC_CHARACTER_ONLY: bool = <Vec<I> as TryFromSexp>::CHARACTER_ONLY