#[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§
Sourceconst OPTION_NATIVE_BORROW: Option<NativeBorrow>
const OPTION_NATIVE_BORROW: Option<NativeBorrow>
<Option<Self> as TryFromSexp>::NATIVE_BORROW.
Sourceconst OPTION_CHARACTER_ONLY: bool
const OPTION_CHARACTER_ONLY: bool
<Option<Self> as TryFromSexp>::CHARACTER_ONLY.
Required Methods§
Sourcefn option_try_from_sexp(sexp: SEXP) -> Result<Option<Self>, SexpError>
fn option_try_from_sexp(sexp: SEXP) -> Result<Option<Self>, SexpError>
<Option<Self> as TryFromSexp>::try_from_sexp, its error as a
SexpError.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".