pub enum AnyOf5<A, B, C, D, E> {
A(A),
B(B),
C(C),
D(D),
E(E),
}Variants§
Implementations§
Source§impl<A, B, C, D, E> AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> AnyOf5<A, B, C, D, E>
pub fn is_a(&self) -> bool
pub fn as_a(&self) -> Option<&A>
pub fn as_a_mut(&mut self) -> Option<&mut A>
pub fn into_a(self) -> Result<A, Self>
pub fn is_b(&self) -> bool
pub fn as_b(&self) -> Option<&B>
pub fn as_b_mut(&mut self) -> Option<&mut B>
pub fn into_b(self) -> Result<B, Self>
pub fn is_c(&self) -> bool
pub fn as_c(&self) -> Option<&C>
pub fn as_c_mut(&mut self) -> Option<&mut C>
pub fn into_c(self) -> Result<C, Self>
pub fn is_d(&self) -> bool
pub fn as_d(&self) -> Option<&D>
pub fn as_d_mut(&mut self) -> Option<&mut D>
pub fn into_d(self) -> Result<D, Self>
pub fn is_e(&self) -> bool
pub fn as_e(&self) -> Option<&E>
pub fn as_e_mut(&mut self) -> Option<&mut E>
pub fn into_e(self) -> Result<E, Self>
Trait Implementations§
Source§impl<'js, A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>> FromJs<'js> for AnyOf5<A, B, C, D, E>
impl<'js, A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>> FromJs<'js> for AnyOf5<A, B, C, D, E>
Source§impl<'js, A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>> IntoJs<'js> for AnyOf5<A, B, C, D, E>
impl<'js, A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>> IntoJs<'js> for AnyOf5<A, B, C, D, E>
Source§impl<'js, A: JsLifetime<'js>, B: JsLifetime<'js>, C: JsLifetime<'js>, D: JsLifetime<'js>, E: JsLifetime<'js>> JsLifetime<'js> for AnyOf5<A, B, C, D, E>
impl<'js, A: JsLifetime<'js>, B: JsLifetime<'js>, C: JsLifetime<'js>, D: JsLifetime<'js>, E: JsLifetime<'js>> JsLifetime<'js> for AnyOf5<A, B, C, D, E>
Source§type Changed<'to> = AnyOf5<<A as JsLifetime<'js>>::Changed<'to>, <B as JsLifetime<'js>>::Changed<'to>, <C as JsLifetime<'js>>::Changed<'to>, <D as JsLifetime<'js>>::Changed<'to>, <E as JsLifetime<'js>>::Changed<'to>>
type Changed<'to> = AnyOf5<<A as JsLifetime<'js>>::Changed<'to>, <B as JsLifetime<'js>>::Changed<'to>, <C as JsLifetime<'js>>::Changed<'to>, <D as JsLifetime<'js>>::Changed<'to>, <E as JsLifetime<'js>>::Changed<'to>>
The target which has the same type as a
Self but with another lifetime 'tAuto Trait Implementations§
impl<A, B, C, D, E> Freeze for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> RefUnwindSafe for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> Send for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> Sync for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> Unpin for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> UnsafeUnpin for AnyOf5<A, B, C, D, E>
impl<A, B, C, D, E> UnwindSafe for AnyOf5<A, B, C, D, E>
Blanket Implementations§
Source§impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
Source§fn param_requirement() -> ParamRequirement
fn param_requirement() -> ParamRequirement
The parameters requirements this value requires.
Source§fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
Convert from a parameter value.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more