Skip to main content

OptionInner

Trait OptionInner 

Source
#[doc(hidden)]
pub trait OptionInner: Sized { const OPTION_NATIVE_BORROW: Option<NativeBorrow>; const OPTION_CHARACTER_ONLY: bool; // Required methods fn option_try_from_sexp(sexp: SEXP) -> Result<Option<Self>, SexpError>; unsafe fn option_try_from_sexp_unchecked( sexp: SEXP, ) -> Result<Option<Self>, SexpError>; }
Expand description

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

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

Required Associated Constants§

Source

const OPTION_NATIVE_BORROW: Option<NativeBorrow>

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

Source

const OPTION_CHARACTER_ONLY: bool

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

Required Methods§

Source

fn option_try_from_sexp(sexp: SEXP) -> Result<Option<Self>, SexpError>

<Option<Self> as TryFromSexp>::try_from_sexp, its error as a SexpError.

Source

unsafe fn option_try_from_sexp_unchecked( sexp: SEXP, ) -> Result<Option<Self>, SexpError>

<Option<Self> as TryFromSexp>::try_from_sexp_unchecked, its error as a SexpError.

§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> OptionInner for I

Source§

const OPTION_NATIVE_BORROW: Option<NativeBorrow> = <Option<I> as TryFromSexp>::NATIVE_BORROW

Source§

const OPTION_CHARACTER_ONLY: bool = <Option<I> as TryFromSexp>::CHARACTER_ONLY