Skip to main content

VecOptionInner

Trait VecOptionInner 

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

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

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

Required Associated Constants§

Source

const VEC_OPTION_NATIVE_BORROW: Option<NativeBorrow>

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

Source

const VEC_OPTION_CHARACTER_ONLY: bool

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

Required Methods§

Source

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

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

Source

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

<Vec<Option<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> VecOptionInner for I

Source§

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

Source§

const VEC_OPTION_CHARACTER_ONLY: bool = <Vec<Option<I>> as TryFromSexp>::CHARACTER_ONLY